From: Gregory S. <gs...@dr...> - 2011-02-15 15:42:23
|
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? -- Gregory Symons <gs...@dr...> Developer DrillingInfo <http://www.drillinginfo.com> |