mysql and vc++6
-
hi I have downloaded the mysql++ from here, i got the link from www.mysql.com download page http://tangentsoft.net/mysql++/releases/mysql++-1.7.1-win32-vc++.zip iam using this version as im using vc++6 when extracted there is serveral folders labled "lib" and "include" which ones do i copy to my "lib" and "include" folders on my pc? is there a better wrapper out there or a site that gives good examples on using the mysql++ wrapper with vc++6 thanks
-
hi I have downloaded the mysql++ from here, i got the link from www.mysql.com download page http://tangentsoft.net/mysql++/releases/mysql++-1.7.1-win32-vc++.zip iam using this version as im using vc++6 when extracted there is serveral folders labled "lib" and "include" which ones do i copy to my "lib" and "include" folders on my pc? is there a better wrapper out there or a site that gives good examples on using the mysql++ wrapper with vc++6 thanks
if i copy all of them in and use #include then in the code do a connect as below Connection con("login","localhost","root","abc"); i get the following errors and warnings c:\program files\microsoft visual studio\vc98\include\type_info1.hh(39) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(159) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(172) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(176) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(180) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(184) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\convert1.hh(40) : warning C4273: 'strtol' : inconsistent dll linkage. dllexport assumed. c:\program files\microsoft visual studio\vc98\include\convert1.hh(41) : warning C4273: 'strtoul' : inconsistent dll linkage. dllexport assumed. c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(37) : warning C4800: 'class SQLQuery *' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(135) : warning C4355: 'this' : used in base member initializer list c:\program files\microsoft visual studio\vc98\include\compare1.hh(48) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\result1.hh(33) : warning C4355: 'this' : used in base member initializer list c:\program files\microsoft visual studio\vc98\include\result1.hh(42) : warning C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning) Linking... mysqlDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::~MysqlConnection(void)" (??1MysqlConnection@@QAE@XZ) mysqlDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::MysqlConnection(char const *,char const *,char const *,char const *,bool)" (??0MysqlConne
-
if i copy all of them in and use #include then in the code do a connect as below Connection con("login","localhost","root","abc"); i get the following errors and warnings c:\program files\microsoft visual studio\vc98\include\type_info1.hh(39) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(159) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(172) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(176) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(180) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\type_info1.hh(184) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\convert1.hh(40) : warning C4273: 'strtol' : inconsistent dll linkage. dllexport assumed. c:\program files\microsoft visual studio\vc98\include\convert1.hh(41) : warning C4273: 'strtoul' : inconsistent dll linkage. dllexport assumed. c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(37) : warning C4800: 'class SQLQuery *' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\sql_query1.hh(135) : warning C4355: 'this' : used in base member initializer list c:\program files\microsoft visual studio\vc98\include\compare1.hh(48) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) c:\program files\microsoft visual studio\vc98\include\result1.hh(33) : warning C4355: 'this' : used in base member initializer list c:\program files\microsoft visual studio\vc98\include\result1.hh(42) : warning C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning) Linking... mysqlDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::~MysqlConnection(void)" (??1MysqlConnection@@QAE@XZ) mysqlDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::MysqlConnection(char const *,char const *,char const *,char const *,bool)" (??0MysqlConne
Is there a lib included in the package you downloaded? If yes, you have not added it to your project. ( project, options, linker ) If you have sourcecode, add the sourcefiles ( the .c or .cpp ) to you project. Your trace shows many warnings because you initialise some variables you never use and then the constructor from MysqlConnection is not found.
-
Is there a lib included in the package you downloaded? If yes, you have not added it to your project. ( project, options, linker ) If you have sourcecode, add the sourcefiles ( the .c or .cpp ) to you project. Your trace shows many warnings because you initialise some variables you never use and then the constructor from MysqlConnection is not found.
there is two librarys in different folders, there is mysql++.lib and libmySQL.lib if you download the zip file you will see the chaos iam on about how do you add them in vc++6 if they do have to be added, they way abou tyou mentioned appears to be for a later version. many thanks
-
there is two librarys in different folders, there is mysql++.lib and libmySQL.lib if you download the zip file you will see the chaos iam on about how do you add them in vc++6 if they do have to be added, they way abou tyou mentioned appears to be for a later version. many thanks
In VC6, go to project ment, the to properties ( ok, I have a german version, so I don't know the exact name. ) There you find on the left side your build-targest, and on the right side a tab-control. In the tab, ther is a page called "linker". Go to it, There is a edit "Objects, libs". Add your library there. Then, click on category and point to input. There add your additional library-path. That's all. Good luck!
-
In VC6, go to project ment, the to properties ( ok, I have a german version, so I don't know the exact name. ) There you find on the left side your build-targest, and on the right side a tab-control. In the tab, ther is a page called "linker". Go to it, There is a edit "Objects, libs". Add your library there. Then, click on category and point to input. There add your additional library-path. That's all. Good luck!
did all that and now get the error LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library so if select the option in properties of "ignore all default libraries" i then get over 200 errors!!