Boost logo

Boost Users :

Subject: Re: [Boost-users] Building Boost dynamically linkable gives linking error?
From: Mehmet Emin Erük (mehmetemineruk_at_[hidden])
Date: 2014-02-06 02:59:45


There is an update about my problem. I am able to build it for release.
Only thing that I have changed is here:

b2 -j%NUMBER_OF_PROCESSORS% --abbreviate-paths toolset=msvc-11.0
define=_SECURE_SCL=0 define=_CRT_SECURE_NO_DEPRECATE
define=_CRT_SECURE_NO_WARNINGS --without-mpi address-model=32
variant=release install link=shared runtime-link=shared threading=multi
asynch-exceptions=on exception-handling=on extern-c-nothrow=off
--prefix=..\boost
cd ..

what could be the problem? How can I solve it?

Thanks in advance for any suggestion.

2014-02-05 15:19 GMT+02:00 Mehmet Emin Erük <mehmetemineruk_at_[hidden]>:

> I am trying to build boost and generate dll's but whatever I have done did
> not solve the problem.
>
> Here what I have got:
>
> Creating library bin.v2\libs\thread\build\msvc-11.0\dbg\adrs-mdl-32\async-excpt-on\thrd-mlt\boost_thread-vc110-mt-gd-1_53.lib and object bin.v2\libs\thread\build\msvc-11.0\dbg\adrs-mdl-32\async-excpt-on\thrd-mlt\boost_thread-vc110-mt-gd-1_53.exp
> thread.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::gregorian::greg_month::greg_month(unsigned short)" (__imp_??0greg_month_at_gregorian@boost@@QAE_at_G@Z) referenced in function "public: __thiscall boost::gregorian::date::date(enum boost::date_time::special_values)" (??0date_at_gregorian@boost@@QAE_at_W4special_values_at_date_time_at_2@@Z)
> thread.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::gregorian::greg_month::operator unsigned short(void)const " (__imp_??Bgreg_month_at_gregorian@boost@@QBEGXZ) referenced in function __catch$?make_external_thread_data@?A0x9b8c45f0_at_boost@@YAXXZ$0
> bin.v2\libs\thread\build\msvc-11.0\dbg\adrs-mdl-32\async-excpt-on\thrd-mlt\boost_thread-vc110-mt-gd-1_53.dll : fatal error LNK1120: 2 unresolved externals
>
>
> Here some information about the setup:
>
> OS: W7 x64
> Command to build:
> b2 -j%NUMBER_OF_PROCESSORS% --abbreviate-paths toolset=msvc-11.0
> define=_SECURE_SCL=0 define=_CRT_SECURE_NO_DEPRECATE
> define=_CRT_SECURE_NO_WARNINGS --without-mpi address-model=32 variant=debug
> install link=shared runtime-link=shared threading=multi
> asynch-exceptions=on exception-handling=on extern-c-nothrow=off
> --prefix=..\boost
> cd ..
>
> I have CYGWin installed to the computer.
>
> *Here what I have tried till now;*
> *I have tried to build it in 32 bit command window (I am using jenkins to
> build boost)
> <tns:build tns:position='boost/boost_1_53_0'
> tns:command='C:\Windows\SysWOW64\cmd /C bootstrap.bat'/>
> <tns:build tns:position='boost/boost_1_53_0'
> tns:command='C:\Windows\SysWOW64\cmd /C
> build_boost-win32-debug-vs2012.cmd'/>
> *I wrote #define BOOST_ALL_DYN_LINK in the boost config/user.hpp
> *I wrote #define BOOST_ALL_NO_LIB in the boost config/user.hpp
>
> Is there anyone who experienced such a problem before? I really could not
> find anything in anywhere?
>
> --
> bir gün herkes özgür olacak
>

-- 
bir gün herkes özgür olacak


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