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
[mailto:amittai@amittai.com] Sent: Saturday, February 01, 2003 3:21 PM To: Boost-Users@yahoogroups.com 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@amittai.com
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
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. -----------------------------------------------------------------------