[LC++]link error

Chris Vine chris at cvine.freeserve.co.uk
Sat Dec 7 19:22:02 UTC 2002


On Friday 06 December 2002 10:33 pm, alain wrote:
> I am trying to compile the ibpp (<http://www.ibpp.org/>) c++ drivers for
> interbase/firebird.
> Everything went mostly fine except the link step:
>
> make[3]: Entre dans le répertoire
> `/home/alain/interbase_firebird/ibpp/tests'
> cc -DIBPP_LINUX -DIBPP_GCC -g -DDEBUG -Wall -I.. -odebug/linux/test1.o
> -c test1.cpp
> test1.cpp: In member function `void Test::Test6()':
> test1.cpp:624: warning: unused variable `char msg[512]'
> cc debug/linux/test1.o -o debug/linux/test1  ../debug/linux/libibpp.a
> -lm -lcrypt -lgds -lstdc++
> /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libgds.so:
> undefined reference to `dlclose'
> /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libgds.so:
> undefined reference to `dlopen'
> /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libgds.so:
> undefined reference to `dlsym'
> collect2: ld returned 1 exit status

You need to link in dl (-ldl).

Chris.




More information about the tuxCPProgramming mailing list