[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CppUnit: ./libcppunit.so: undefined reference to 'dlclose'



On Sun, 2005-01-23 at 16:08, Michael Marsh wrote:
> On Sun, 23 Jan 2005 09:18:40 +0100, Peter Robinson
> <Peter.Robinson@t-online.de> wrote:
> > I just installed CppUnit in sarge. For some reason, I cannot get the
> > test program to compile
> >         g++ -o test test.cpp -lcppunit
> > 
> > returns
> > 
> > g++ -o test test.cpp -lcppunit
> > ./libcppunit.so: undefined reference to `dlclose'
> > ./libcppunit.so: undefined reference to `dlopen'
> > ./libcppunit.so: undefined reference to `dlsym'
> > collect2: ld returned 1 exit status
> > make: *** [test] Error 1
> 
> Do you need to specify "-ldl"?
> 

Yes, you are right! I wish I could buy you a beer or the beverage of
your choice! :-} 
I did not realize that this was a library. In case anybody comes across
this thread with a similar problem, take a look at
http://commmunity.linux.com/howtos/Program-Library-HOWTO/dl-libraries.shtml for a short intro.
Thanks,
Peter



-- 
Peter N. Robinson
peter.robinson@t-online.de
peter.robinson@charite.de
http://www.charite.de/ch/medgen/robinson/



Reply to: