|
Boost Users : |
Subject: Re: [Boost-users] boost interprocess linking problems under windows
From: niXman (i.nixman_at_[hidden])
Date: 2013-04-24 10:31:36
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_at_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_at_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_at_36'
> C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1700:
> undefined reference to `_imp__CoCreateInstance_at_20'
> C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1731:
> undefined reference to `_imp__CoSetProxyBlanket_at_32'
> C:/progra~1/boost/boost_1_53_0/boost/interprocess/detail/win32_api.hpp:1774:
> undefined reference to `_imp__VariantClear_at_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/
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