Win7 32 codelite c++ mysql
Posted: Sun Dec 14, 2014 2:44 pm
Hi all:
I am trying to write C++ with codelite in Win7 environment. I need to connect mysql database and postgresql.
After yahoo (I live in China, so google is so far away from us), I didn't find too many useful information.
I have tried this: http://dev.mysql.com/downloads/connector/cpp/ but it doesn't work.
To complie, I have to edit config.h,
and even after that it give me this:
C:/local/mysql/include/mysql_driver.h:89: undefined reference to `_imp___ZN3sql5mysql19get_driver_instanceEv'
So, can some give me some tips?
I am trying to write C++ with codelite in Win7 environment. I need to connect mysql database and postgresql.
After yahoo (I live in China, so google is so far away from us), I didn't find too many useful information.
I have tried this: http://dev.mysql.com/downloads/connector/cpp/ but it doesn't work.
To complie, I have to edit config.h,
Code: Select all
#ifdef HAVE_MS_INT32
//typedef __int32 int32_t;
#endif
#ifdef HAVE_MS_UINT32
//typedef unsigned __int32 uint32_t;
#endif
C:/local/mysql/include/mysql_driver.h:89: undefined reference to `_imp___ZN3sql5mysql19get_driver_instanceEv'
So, can some give me some tips?