Boost logo

Boost Users :

From: Dan Dimerman (dan_dimerman_at_[hidden])
Date: 2004-05-05 02:46:24


Hello,

I'm having the following problem when linking a MSWindows MFC application
with the static library libboost_date_time.lib using DevStudio .Net 7.0.
The output looks like this:

------ Build started: Project: Main, Configuration: Debug Win32 ------
Linking...
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall
type_info::type_info(class type_info const &)" (??0type_info@@AAE_at_ABV0@@Z)
already defined in libcmtd.lib(typinfo.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info &
__thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0_at_ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other
libs; use /NODEFAULTLIB:library
Debug/Main.exe : fatal error LNK1169: one or more multiply defined symbols
found

I am working with the "Multi-threaded Debug (/MTd)" version of libraries.
Tried using alternatives, but I got errors elsewhere and the errors above
persisted.
>From boost, I am using the library built at "My Documents\Visual Studio
Projects\boost\libs\date_time\build\bin\libboost_date_time.lib\vc7\debug\run
time-link-dynamic"

Any help will be greatly appreciated...

-- 
Dan Dimerman
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04-May-04

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