boost 1.30 / date_time / link problem with VC7
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@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@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
On Wed, 5 May 2004 09:46:24 +0200, Dan Dimerman wrote
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...
The problem doesn't appear to be the symbols in date_time itself, but rather a mismatch in the library / code generation. You might need to use 'debug multithread' in your code setting or switch to a different version of the .lib file which matches the settings of your project. HTH, Jeff
participants (2)
-
Dan Dimerman
-
Jeff Garland