I'm trying to connect to my mysql database in a C++ console application. I found this example in the below link and the only trouble im having is this part here
This step is VERY IMPORTANT. If you don't follow this you will get unresolved
external errors when you try to link your app.
Open your project settings and go to linker.
Add addition dependency : libmysql.lib
Make sure you have the include files, libraries, and
binary files. If you
don't have it then just download MySQL Server without the installer.
then just set the include paths for your project to those. I have included
mine in global settings, because I use it so much and it's too tedious
-
to redo
project settings every single time.
i have no idea how to include files libraries etc and i have no idea what is in my_global.h.
The C++ compiler i am using is dev-cpp but i have microsoft visual c++ 6 and microsoft visual studio 2005. I would prefer dev-cpp but assistance with either complier would be greatly appreciated.
I'm trying to connect to my mysql database in a C++ console application. I found this example in the below link and the only trouble im having is this part here
This step is VERY IMPORTANT. If you don't follow this you will get unresolved
external errors when you try to link your app.
Open your project settings and go to linker.
Add addition dependency : libmysql.lib
Make sure you have the include files, libraries, and
binary files. If you
don't have it then just download MySQL Server without the installer.
then just set the include paths for your project to those. I have included
mine in global settings, because I use it so much and it's too tedious
-
to redo
project settings every single time.
i have no idea how to include files libraries etc and i have no idea what is in my_global.h.
The C++ compiler i am using is dev-cpp but i have microsoft visual c++ 6 and microsoft visual studio 2005. I would prefer dev-cpp but assistance with either complier would be greatly appreciated.
The link to the tutorial is: http://www.nitecon.com/tutorials/CMySQL.php
Thanks in advance
Dave