Boost logo

Boost Users :

From: Tom Matelich (tmatelich_at_[hidden])
Date: 2003-02-03 12:08:23


microsoft has a way to implicitly require the loading of dll's. To disable
regex's use of this define BOOST_REGEX_NO_LIB

> -----Original Message-----
> From: Amittai Aviram <amittai_at_[hidden]>
> [mailto:amittai_at_[hidden]]
> Sent: Saturday, February 01, 2003 3:21 PM
> To: Boost-Users_at_[hidden]
> Subject: [Boost-Users] More on static linkage
>
>
> I have been trying to link the boost::regex library to a DLL (Release
> build) without success and I really need help. I have learned
> something new. Hitherto, I have put this line right above my code in
> one of my header files, i.e., within the "#if !defined()" block that
> prevents duplicate inclusion:
>
> #define BOOST_REGEX_STATIC_LINK
>
> This has no effect on the build whatsoever. The resulting DLL is no
> bigger and the client will not work if you rename
> boost_regex_vc6_mdi.dll from its place. You get an error message
> from the client saying that this file is missing.
>
> If, however, I place the line above as the very first line in a
> header file, then, instead, I simply cannot compile and build the
> project at all. The compile error I am getting states that there
> are "multiply defined symbols"! I.e., the symbols defined in the
> library are being defined twice.
>
> This is driving me nuts.
>
> Thanks for any help.
>
> Amittai Aviram
> amittai_at_[hidden]
>
>
>
>
> Info: <
http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

-----------------------------------------------------------------------
DISCLAIMER: Information contained in this message and/or
attachment(s) may contain confidential information of Zetec, Inc.
If you have received this transmission in error, please notify
the sender by return email.
-----------------------------------------------------------------------


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