Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam and libraries
From: Bojan Resnik (resnikb_at_[hidden])
Date: 2009-12-25 16:04:32


2009/12/25 k h <xerceslist.kh_at_[hidden]>

>
> The .lib file is not created because you're exporting nothing from your
>> library. Change the following line
>>
>
> Many thanks, and sorry for asking a question that turned out to be
> completely unrelated to Boost. Your fix worked fine, and I am hoping that
> with it in place I should be able to get the code to compile using a
> portable jamfile?
>
> It now works better, so the counterexample is a little longer. Again, the
> addition of <link>static makes the code compile, but this time it complains
> about multiply defined symbols within zlib if it is not specified. What am
> I doing wrong this time? Many thanks.
>

Try changing

> extern void blah (void);
>

to
__declspec(dllimport) void blah(void);

see if this helps.

-- 
Bojan Resnik


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk