From: David Abrahams (dave_at_[hidden])
Date: 2008-03-12 21:50:26
on Tue Feb 26 2008, "Simon Hammett" <div0-AT-users.sourceforge.net> wrote:
> On 26/02/2008, Robert Dailey <rcdailey_at_[hidden]> wrote:
>> On Mon, Feb 25, 2008 at 7:00 PM, Stefan Seefeld <seefeld_at_[hidden]>
>> > I'm not sure you would find help in any particular file.
>> > However, the problem does sound rather simple: you want to build an
>> > executable when you actually build a library. That sounds like a pretty
>> > simple but fundamental setting in your project file.
>> I think I see where you're confused. What I meant to say from the very
>> beginning is that I DO build an executable, however the linker ALSO outputs
>> a .LIB file. In my project settings I have it setup to build an application
>> (EXE), not a library! When I comment out the BOOST_PYTHON_MODULE() code, the
>> library is no longer generated.
> The boost python module code creates exports in your program.
> The ms linker will always generate a lib file for any dll/exe with exports.
> There is no option (at least in .net 2003) to not generate the .lib
If you #define BOOST_PYTHON_STATIC_MODULE as described in
http://boost.org/libs/python/doc/v2/configuration.html, it will
not try to export symbols for your extension module.
-- Dave Abrahams Boost Consulting http://boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk