MySQL & VS2010

09/04/2012 13:31 ernilos#1
I'm trying to add MySQL libs to VS2010, but i fail... I have c++ Connectors from MySQL web...
Can somebody help me to add libs to my project? ><
09/04/2012 14:07 kissein#2
[Only registered and activated users can see links. Click Here To Register...]

and here the download for the .net connector from mysql.com
[Only registered and activated users can see links. Click Here To Register...]
09/04/2012 15:17 ernilos#3
Quote:
Originally Posted by kissein View Post
[Only registered and activated users can see links. Click Here To Register...]

and here the download for the .net connector from mysql.com
[Only registered and activated users can see links. Click Here To Register...]
I need to c++ No c#...
09/04/2012 18:08 kissein#4
oh sry, my fault, little confused today
09/11/2012 17:10 ernilos#5
Please, Help! :c
09/11/2012 17:40 SmackJew#6
You already tried sqlite and made a thread about it and ignored the advice that was given to you. What else do you want?
09/11/2012 18:41 Nightblizard#7
Code:
#include "mysql/include/mysql.h"
#pragma comment(lib, "mysql/lib/libmysql.lib")
So, what exactly is the problem? You could also add the .lib file inside your projects solution file, but that up there already does the job.
09/11/2012 22:35 ernilos#8
Problem are in that:
Code:
con = driver->connect("localhost", "root", "Pssw");
Give me a 'Acces Violation'
.. That:
[Only registered and activated users can see links. Click Here To Register...]
09/11/2012 22:48 SmackJew#9
Quote:
Originally Posted by ernilos View Post
Problem are in that:
Code:
con = driver->connect("localhost", "root", "Pssw");
Give me a 'Acces Violation'
.. That:
Code:
driver = new Driver(...);
09/11/2012 22:50 ernilos#10
Quote:
Originally Posted by SmackJew View Post
Code:
driver = new Driver(...);
I have that
Code:
sql::Driver *driver;
If I write driver = new sql::Driver(); Give me errors :/
09/11/2012 22:53 SmackJew#11
Quote:
Originally Posted by ernilos View Post
I have that
Code:
sql::Driver *driver;
If I write driver = new sql::Driver(); Give me errors :/
If you're not gonna put any effort into it I'm not gonna keep posting. Took me literally 5 seconds to google this.

Code:
driver = get_driver_instance();
09/11/2012 22:57 ernilos#12
Quote:
Originally Posted by SmackJew View Post
If you're not gonna put any effort into it I'm not gonna keep posting. Took me literally 5 seconds to google this.

Code:
driver = get_driver_instance();
appears that error:

Error 1 error LNK2001: Extern Symbol __imp__get_driver_instance not resolved
09/11/2012 23:01 SmackJew#13
Properly link the libs or change to the 32 bit version of it.
09/13/2012 14:32 ernilos#14
Quote:
Originally Posted by SmackJew View Post
Properly link the libs or change to the 32 bit version of it.
I tryed 2 versions of MySQL and give me 'Acces Violation' ...