Deepak Shrestha wrote:
> Warren Young wrote:
>> Put "-lmysqlpp -lmysqlclient" at the end of the command line. If
>> you study Makefile.simple, you'll see this.
>>
> tried as you suggested:
>
> g++ -Wall -I"c:\MySQL++\include" -I"c:\Program Files\MySQL\MySQL
> Server 5.0\include" -L"c:\MySQL++\mingw\lib" -L"c:\Program
> Files\MySQL\MySQL Server 5.0\lib" -lmysqlpp -lmysqlclient main.cpp -o
> main.exe
>
> now gave me following:
> =================
> d:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lmysqlclient collect2: ld returned 1 exit status
> =================
>
> C:\Program Files\MySQL\MySQL Server 5.0\lib\opt\mysqlclient.lib is
> present.
>
> Thanks for your time
>
>
>
>
>
Solved now. Small typo mistake. It could have been -llibmysqlclient.a
instead of -lmysqlclient.a. Couldn't figure out for a while :-)
Its working perfectly
Thanks