2 messages in com.mysql.lists.plusplusMySQL++ build problems (VC7)| From | Sent On | Attachments |
|---|---|---|
| scot...@CLEMSON.EDU | 11 Jan 2005 08:53 | |
| Warren Young | 11 Jan 2005 20:05 |
| Subject: | MySQL++ build problems (VC7)![]() |
|---|---|
| From: | scot...@CLEMSON.EDU (scot...@CLEMSON.EDU) |
| Date: | 01/11/2005 08:53:57 AM |
| List: | com.mysql.lists.plusplus |
I have a MySQL++ build problem in Visual Studio. When building simple1.vcproj, I receive the following errors:
mysql++.lib(sql_query.obj) : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0SQLString@mysqlpp@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "class mysqlpp::SQLString * __cdecl mysqlpp::pprepare(char,class mysqlpp::SQLString &,bool)" (?pprepare@mysqlpp@@YAPAVSQLString@1@DAAV21@_N@Z) mysql++.lib(manip.obj) : error LNK2001: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0SQLString@mysqlpp@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) mysql++.lib(sql_query.obj) : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(char const *)" (??0SQLString@mysqlpp@@QAE@PBD@Z) referenced in function "class mysqlpp::SQLString * __cdecl mysqlpp::pprepare(char,class mysqlpp::SQLString &,bool)" (?pprepare@mysqlpp@@YAPAVSQLString@1@DAAV21@_N@Z) mysql++.lib(manip.obj) : error LNK2001: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(char const *)" (??0SQLString@mysqlpp@@QAE@PBD@Z) c:\cygwin\home\scottjpearson\mysql++-1.7.26\examples\Debug\custom3.exe : fatal error LNK1120: 2 unresolved externals
The command line for the linker includes libmysql.lib, as follows: /OUT:"c:\cygwin\home\scottjpearson\mysql++-1.7.26\examples\Debug\resetdb.exe" /INCREMENTAL /NOLOGO /LIBPATH:"c:\mysql\lib\debug" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\cygwin\home\scottjpearson\mysql++-1.7.26\examples\Debug/resetdb.pdb" libmysql.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "\cygwin\home\scottjpearson\mysql++-1.7.26\Debug\mysql++.lib" "\mysql\lib\debug\libmysql.lib"
What am I missing?
Scott
--- Scott J. Pearson Systems Programmer, Center for the Advanced Engineering of Fibers and Films Clemson University 864.656.6389 scot...@clemson.edu 10 Riggs Hall, Clemson, SC 29634 http://www.clemson.edu/caeff/




