Boost logo

Boost Users :

From: Chris Hoeppler (hoeppler_at_[hidden])
Date: 2006-11-16 01:06:29


Hi,

With last weekend's cvs version of RC_1_34_0 is was able to use the
dynamic-library version of the unit_test_framework. Since I did a cvs update
yesterday I get a link error trying to do so:

  g++ -o build/debug/test/kern/test_macros.o -c -g -Wall -ftemplate-depth-255
-O0 -fno-inline -DBOOST_TEST_DYN_LINK -I.
-I/home/hoeppler/src/boost_RC_1_34_0 test/kern/test_macros.cpp
  g++ -o build/debug/test/kern/test_macros -Wl,-rpath-link,.
build/debug/test/kern/test_macros.o build/debug/src/kern/parser/macros.o
-L/home/hoeppler/src/boost_RC_1_34_0/stage/lib -lboost_filesystem-gcc41-d
-lboost_regex-gcc41-d -lboost_unit_test_framework-gcc41-d

/usr/lib/gcc/i586-suse-linux/4.1.0/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

Addidtional information:
This is gcc-4.1.0 on linux. The boost libs were built with the boost build
system. I am setting up test_suits as follows:

  test_suite*
  init_unit_test_suite( int, char* [] ) {
      test_suite* test(BOOST_TEST_SUITE("Unit test macros"));

  // <snip>

      return test;
  }

Any idea what's going wrong?

Thanks
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