Boost logo

Boost Users :

From: John C. Femiani (john.femiani_at_[hidden])
Date: 2008-07-20 18:27:03


Ovanes Markarian wrote:
>
> The problem here is that you set to link against dynamic version of
> C++ runtime and you want boost to link against static version of boost
> lib. This will not work.
>
> Please select either another compilation switch (Project Properties /
> C++ / Code Generation) and choose there non-DLL version of runtime,
> like Multi-Threaded Library and not as currently Multi-Threaded
> Library DLL. This should change your compiler switch from /MD to /MT.
I dont think that is the problem because he is linking with
libboost_unit_test_framework-vc80-mt-1_35.lib, and since there is no
'-s' in the name, it links with MSVCRT, and it is selected by boost
autolink when you use option /MD and and you are not compiling DEBUG code.

Plus, it works flawlessly on my system.

I _did_ notice a difference between our liker options; You don't have
the subsystem set. When I throw together an msvc project I get this
linker option:

/SUBSYTEM:CONSOLE

If I remove that option, I get:

1>LINK : fatal error LNK1561: entry point must be defined

Personally, I never even paid attention to it before (the defaults
always worked for me), but I guess that is probably your problem.

open your project properties, and change Linker->System->SubSystem from
[Not Set] to '/SUBSYSTEM:CONSOLE', or just manually add it to the
command line and see if that works.

--John


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