boost interprocess linking problems under windows

hi, i'm having difficulty compiling my program which uses boost::interprocess under windows. it compiles successfully under OS X. ./debug\enginesync.o: In function `ZN5boost12interprocess6winapi16co_uninitializerD1Ev': C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1651: undefined reference to `_imp__CoUninitialize@0' ./debug\enginesync.o: In function `ZN5boost12interprocess6winapi23get_wmi_class_attributeERSbIwSt11char_traitsIwESaIwEEPKwS8_': C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1673: undefined reference to `_imp__CoInitializeEx@8' Makefile.Debug:148: recipe for target '..\JASPDesktop.exe' failed C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1690: undefined reference to `_imp__CoInitializeSecurity@36' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1700: undefined reference to `_imp__CoCreateInstance@20' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1731: undefined reference to `_imp__CoSetProxyBlanket@32' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1774: undefined reference to `_imp__VariantClear@4' collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [..\JASPDesktop.exe] Error 1 i'm using mingw32 gcc 4.7, boost 1.53, under windows xp 32 bit. any assistance would be appreciated. with thanks

2013/4/24 Jonathon Love:
hi,
Hi,
i'm having difficulty compiling my program which uses boost::interprocess under windows. it compiles successfully under OS X.
./debug\enginesync.o: In function `ZN5boost12interprocess6winapi16co_uninitializerD1Ev': C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1651: undefined reference to `_imp__CoUninitialize@0' ./debug\enginesync.o: In function `ZN5boost12interprocess6winapi23get_wmi_class_attributeERSbIwSt11char_traitsIwESaIwEEPKwS8_': C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1673: undefined reference to `_imp__CoInitializeEx@8' Makefile.Debug:148: recipe for target '..\JASPDesktop.exe' failed C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1690: undefined reference to `_imp__CoInitializeSecurity@36' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1700: undefined reference to `_imp__CoCreateInstance@20' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1731: undefined reference to `_imp__CoSetProxyBlanket@32' C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1774: undefined reference to `_imp__VariantClear@4' collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [..\JASPDesktop.exe] Error 1
Add the '-lole32 -loleaut32' to link comand line. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___________________________________________________ Another online IDE: http://liveworkspace.org/
participants (2)
-
Jonathon Love
-
niXman