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

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



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"?

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh



Reply to: