Boost logo

Boost Users :

From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2008-09-03 07:24:50


Hi Olaf !

An'n Mittwoch 03 September 2008 hett Olaf Peter schreven:
> Hi,
>
> I've got the linker error LNK2005
> (http://msdn.microsoft.com/en-us/library/72zdcz6f(VS.80).aspx) using
> MSVC80 (Studio 2005):
>
> libboost_program_options-vc80-mt-1_35.lib(value_semantic.obj) : error
> LNK2005:
> ist bereits in
>
>boost_program_options-vc80-mt-1_35.lib(boost_program_options-vc80-mt-1_35.dll)
> definiert.

You're linking against both static and shared library at the same time.Can't
work.

> using the linker options:
>
> /O2 /Ob2 /I "C:\Cpp\boost_1_35_0" /I ...
> /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "BOOST_ENABLE_ASSERT_HANDLER=1"
> /D "QT_DLL" /D "QT_GUI_LIB" /D "QT_CORE_LIB" /D "QT_NO_DEBUG" /D
> "CMAKE_INTDIR=\"Release\"" /D "_MBCS" /FD /EHsc /MD
> /Fo"eda.dir\Release\\" /Fd"D:/work/build/Release/eda.pdb" /W3 /nologo /c
> /TP /errorReport:prompt
>
> Any ideas what happened here?

CMake running wild ? Look at FindBoost.cmake what went wrong. And most
probably disabled autolinking or add BOOST_ALL_DYN_LINK if you want shared
libs. Take a look at the getting started guide for more tips.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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