[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] bjam and libraries
From:       k h <xerceslist.kh () googlemail ! com>
Date:       2009-12-26 22:02:22
Message-ID: 951708020912261402t6b3435abh9de8f5da187a8eed () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> __declspec(dllimport) void blah(void);

It seems to work without it, but it is the correct thing to do. Many thanks
for the suggestion.

The fix for the link conflict was to add BOOST_ALL_DYN_LINK as below.  I am
surprised bjam does not do that on its own. Maybe I am still doing something
wrong?

lib mylib : testlib.cpp :
   <library>/boost//iostreams
   <link>shared:<define>BOOST_ALL_DYN_LINK
   <library-path>$(BOOST_LIB)
;

I could not easily find this anywhere, so for the benefit of google: bjam
dll iostreams example multiply defined link conflict import library

[Attachment #5 (text/html)]

&gt; __declspec(dllimport) void blah(void); <br><br>It seems to work withou=
t it, but it is the correct thing to do. Many thanks for the suggestion. <b=
r><br>The fix for the link conflict was to add BOOST_ALL_DYN_LINK as below.=
=A0 I am surprised bjam does not do that on its own. Maybe I am still doing=
 something wrong?<br>
<br>lib mylib : testlib.cpp : <br>=A0=A0 &lt;library&gt;/boost//iostreams<b=
r>=A0=A0 &lt;link&gt;shared:&lt;define&gt;BOOST_ALL_DYN_LINK<br>=A0=A0 &lt;=
library-path&gt;$(BOOST_LIB)<br>;<br><br>I could not easily find this anywh=
ere, so for the
benefit of google: bjam dll iostreams example multiply defined link conflic=
t
import library <br>
<br>


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic