Boost logo

Boost Users :

From: Chris Hoeppler (hoeppler_at_[hidden])
Date: 2006-03-26 10:49:11


Hi,

Up to boost version 1.33.1 I used to be able to successfully build my
unitests, which define a testsuite with the library function
init_unit_test_suite, like this:

g++ -o build/debug/test/devs/test_shdevlib.o -c -g -Wall -ftemplate-depth-255
-O0 -fno-inline -I. -I/home/boost/src/boost-built test/devs/test_shdevlib.cpp
g++ -o build/debug/test/devs/test_shdevlib -Wl,-rpath-link,. -rdynamic
build/debug/test/devs/test_shdevlib.o -L/home/boost/src/boost-built/stage/lib
-lboost_unit_test_framework-gcc-d -ldl

With the current cvs version of boost this doesn't work any more. Linking
fails with the following error:

/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crt1.o(.text+0x18): In
function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
collect2: ld returned 1 exit status

This is on linux with gcc 3.3.3.

Is this usage of the UTF not supported any more? How do I have to change the
way I'm building my unit tests? Linking to the static version?

TIA,

Chris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net