From: Dean M. B. <mik...@gm...> - 2011-02-15 17:17:57
|
Hi Gregory, On Tue, Feb 15, 2011 at 11:42 PM, Gregory Symons <gs...@dr...> wrote: > Hi, > > I'm trying to build the tests using gcc 4.4 on linux, and I can't seem > to figure out what's going wrong. Running cmake works fine, and the > boost libraries are all found correctly, but when I run make, it fails > to link on the first test: > > Linking CXX executable ../../../build/tests/cpp-netlib-http_1_0_test > /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function > `_start': > (.text+0x20): undefined reference to `main' > collect2: ld returned 1 exit status > make[2]: *** [build/tests/cpp-netlib-http_1_0_test] Error 1 > make[1]: *** > [libs/network/test/CMakeFiles/cpp-netlib-http_1_0_test.dir/all] Error 2 > make: *** [all] Error 2 > > My boost has everything built as shared libraries, so I've tried adding > BOOST_TEST_DYN_LINK and BOOST_TEST_MAIN to CXXFLAGS, but that doesn't > seem to have an effect. > > Any ideas? > Actually, currently the unit tests require that Boost.Test be linked in statically. I haven't added in the capability for configuring the testing system through CMake to accept these or additional settings. HTH -- Dean Michael Berris about.me/deanberris |