Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. mysql and vc++6

mysql and vc++6

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++mysqlcomquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viperlogic
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • V viperlogic

      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

      V Offline
      V Offline
      viperlogic
      wrote on last edited by
      #2

      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

      H 1 Reply Last reply
      0
      • V viperlogic

        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

        H Offline
        H Offline
        Hardy_Smith
        wrote on last edited by
        #3

        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.

        V 1 Reply Last reply
        0
        • H Hardy_Smith

          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.

          V Offline
          V Offline
          viperlogic
          wrote on last edited by
          #4

          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

          H 1 Reply Last reply
          0
          • V viperlogic

            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

            H Offline
            H Offline
            Hardy_Smith
            wrote on last edited by
            #5

            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!

            V 1 Reply Last reply
            0
            • H Hardy_Smith

              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!

              V Offline
              V Offline
              viperlogic
              wrote on last edited by
              #6

              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!!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups