Hi Gregory,

On Tue, Feb 15, 2011 at 11:42 PM, Gregory Symons
<[email protected]> 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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to