Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-01-20 10:56:47


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Sliwa, Przemyslaw (London)
> Sent: Friday, January 20, 2006 10:32 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] STL-PORT and VC 7.1
>
> I have a quick question - I would like to build the static library and
> not the DLL.
> Could you tell me what should be changed in the project apart form the
> "General->static lib"?

[Nat] Um, no. But since .vcproj files are specially-formatted text
files, I assume the worst case would involve building a new
static-library project by manually setting things the same way in your
new project file as in my old one. The IDE may let you change the root
type of a project after the fact; I've never tried.
 
> Do you know how to disable the auto-link of boost?

[Nat] These are things we changed in boost/boost/config/user.hpp:

// BOOST_WHATEVER_DYN_LINK: Forces library "whatever" to be linked as a
dll
// rather than a static library on Microsoft Windows: replace the
WHATEVER
// part of the macro name with the name of the library that you want to
// dynamically link to, for example use BOOST_DATE_TIME_DYN_LINK or
// BOOST_REGEX_DYN_LINK etc (this macro is used to turn on
__declspec(dllimport)
// modifiers, so that the compiler knows which symbols to look for in a
dll
// rather than in a static library).
// Note that there may be some libraries that can only be statically
linked
// (Boost.Test for example) and others which may only be dynamically
linked
// (Boost.Threads for example), in these cases this macro is
unsupported.
// #define BOOST_WHATEVER_DYN_LINK
#define BOOST_FILESYSTEM_DYN_LINK
#define BOOST_SIGNALS_DYN_LINK
#define BOOST_PYTHON_DYN_LINK
 
// BOOST_ALL_NO_LIB: Tells the config system not to automatically select

// which libraries to link against.
// Normally if a compiler supports #pragma lib, then the correct library

// build variant will be automatically selected and linked against,
// simply by the act of including one of that library's headers.
// This macro turns that feature off.
#define BOOST_ALL_NO_LIB


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