List:MySQL++« Previous MessageNext Message »
From:Deepak Shrestha Date:August 13 2008 8:48am
Subject:Re: Undefined Reference Error
View as plain text  
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




Thread
Undefined Reference ErrorDeepak Shrestha12 Aug
  • Re: Undefined Reference ErrorDeepak Shrestha13 Aug
    • Re: Undefined Reference ErrorWarren Young13 Aug
      • Re: Undefined Reference ErrorDeepak Shrestha13 Aug
        • Re: Undefined Reference ErrorDeepak Shrestha13 Aug