Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-03-12 21:50:26

on Tue Feb 26 2008, "Simon Hammett" <> 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]>
>> wrote:
>> >
>> > 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, it will
not try to export symbols for your extension module.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at