Boost logo

Boost Users :

Subject: [Boost-users] boost linkage problem
From: Dave Dyer (ddyer-boost_at_[hidden])
Date: 2013-01-30 18:19:24


I'm trying to construct a small library of wrappers for boost-using
functions.

In my test environment that links with this library (a windows executable) everything is fine. The working environment doesn't name any libraries explicitly.

In another environment (the one I'm actually interested in) I get a large number of linkage errors, apparently seeking libstdc++

A small sample:

1>sharedmem-debug-x64.lib(sharedmemory.obj) : warning LNK4217: locally defined symbol ??1?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QEAA_at_XZ (public: __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)) imported in function "public: static bool __cdecl boost::interprocess::shared_memory_object::remove(char const *)" (?remove_at_shared_memory_object_at_interprocess@boost@@SA_NPEBD_at_Z)
1>sharedmem-debug-x64.lib(sharedmemory.obj) : warning LNK4217: locally defined symbol ?c_str@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QEBAPEBDXZ (public: char const * __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const ) imported in function "public: static bool __cdecl boost::interprocess::shared_memory_object::remove(charconst *)" (?remove_at_shared_memory_object_at_interprocess@boost@@SA_NPEBD_at_Z)

The non-working link is a complex environment, but I'm stumped why it
doesn't link, or how to get it to link.



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