Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.test] Missing entry point when statically linking to VC2012 but no problem with VC2010
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2012-07-03 15:25:50


Tan, Tom (Shanghai <TTan <at> husky.ca> writes:

> #include <boost/test/unit_test.hpp>
> using namespace boost::unit_test::framework;
> using namespace boost::unit_test;
>  
> test_suite* init_unit_test_suite(int argc, char *argv[])
> {
>     BOOST_TEST_MESSAGE("hello test.");
>  
>     return 0;
> }
> With the same build options:
> cl.exe /EHsc /MT main.cpp
>  
> VC2010 compiles fine. VC2012 outputs:
> LINK : fatal error LNK1561: entry point must be defined.

Don't you need to link with static library? Can you try using single header
variants?

Gennadiy


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