Hi linyi li,

On Tue, Jan 17, 2012 at 10:00:07AM +0800, linyi li wrote:
> Hi Ariel,
> 
> My problem is the same like L'oiseau de mer.
> 
> The variable CPPUNIT_CFLAGS    is set to: -I/usr/local/include
> The variable CPPUNIT_LIBS      is set to: -L/usr/local/lib -lcppunit


is /usr/local/lib in the linker search path?

* does your system set the environment variable LD_LIBRARY_PATH
  Try echo $LD_LIBRARY_PATH 

* does your system add this path in the ld configuration? Usually
  /etc/ld.so.conf and /etc/ld.so.conf.d/*.conf


If /usr/local/lib is not on the linker search path you will always get
undefined references.
Adding -L/usr/local/lib to the linker command is not enough.


> The full output of the command when building smoketestoo_native is:
> lily@lily-desktop:~/ooo/main$ cd smoketestoo_native && build
> build -- version: 275224
> 
> 
> =============
> Building module smoketestoo_native
> =============
> 
> Entering /home/lily/ooo/main/smoketestoo_native
> 
> dmake: Executing shell macro: ls
> $(installationtest_instset)/OOo_*_install-arc_$(defaultlangiso).tar.gz
> Making:    libsmoketest.so
> g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-Bsymbolic-functions
> -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
> -Wl,--hash-style=both -shared -Wl,-O1 -Wl,--version-script ./
> unxlngi6.pro/misc/version_smoketest.map -L./unxlngi6.pro/lib -L../lib
> -L/home/lily/ooo/main/solenv/unxlngi6/lib -L/home/lily/ooo/main/solver/340/
> unxlngi6.pro/lib -L/home/lily/ooo/main/solenv/unxlngi6/lib
> -L/usr/lib/jvm/java-6-sun/lib -L/usr/lib/jvm/java-6-sun/jre/lib/i386
> -L/usr/lib/jvm/java-6-sun/jre/lib/i386/client
> -L/usr/lib/jvm/java-6-sun/jre/lib/i386/native_threads -L/usr/lib ./
> unxlngi6.pro/slo/smoketest.o ./unxlngi6.pro/slo/smoketest_version.o -o ./
> unxlngi6.pro/lib/libsmoketest.so -luno_cppuhelpergcc3 -luno_cppu
> -L/usr/local/lib -lcppunit -luno_sal -ltest -Wl,--as-needed -ldl -lpthread
> -lm -Wl,--no-as-needed -Wl,-Bdynamic -lstlport_gcc
> /usr/bin/ld: cannot find -ltest

did you build the trunk/main/test module?


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpqWUlL0fzjW.pgp
Description: PGP signature

Reply via email to