I am trying to get my DLL to get linked statically with the boost::regex library and having _no success_. I have tried putting this line into one of the header files: #define BOOST_REGEX_STATIC_LINK And I have tried this line, alone and in combination with the above: #define BOOST_REGEX_NO_LIB I have tried putting the .lib file boost_regex_vc6_mdi.lib into the list of includes under Project->Settings->Link, with or without the above lines. I give up! And of course people want this thing yesterday. Please help? Thanks. Amittai Aviram amittai@amittai.com
I am trying to get my DLL to get linked statically with the boost::regex library and having _no success_. I have tried putting this line into one of the header files:
#define BOOST_REGEX_STATIC_LINK
That will do the job, provided you don't want the regex code exposed from the dll.
And I have tried this line, alone and in combination with the above:
#define BOOST_REGEX_NO_LIB
Add the source directly to the project if you use that one (or build as a static lib yourself, with whatever build options you require).
I have tried putting the .lib file boost_regex_vc6_mdi.lib into the list of includes under Project->Settings->Link, with or without the above lines. I give up! And of course people want this thing yesterday. Please help?
Sorry, too late for Yesterday :-) John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
I am trying to get my DLL to get linked statically with the boost::regex library and having _no success_. I have tried
--- In Boost-Users@yahoogroups.com, "John Maddock"
this line into one of the header files:
#define BOOST_REGEX_STATIC_LINK
That will do the job, provided you don't want the regex code exposed from the dll.
I'm afraid that it didn't do it. I am working in Microsoft Visual C++ 6 and building the project as a "Release" build (as the documentation requires), but I still find that, if I then change the name of boost_regex_vc6_mdi.dll on my machine (to, say, "xboost_regex_vc6_mdi.dll"), I get a message box when running the DLL's client that says that that file is missing and must be installed. Why isn't this working? Is there anything else I need to attend to in the Projects->Settings options? Should the .lib be listed among the include files in Projects->Settings or not? Anything else? I'd appreciate your help. Thanks. Amittai
I am trying to get my DLL to get linked statically with the boost::regex library and having _no success_. I have tried
--- In Boost-Users@yahoogroups.com, "John Maddock"
this line into one of the header files:
#define BOOST_REGEX_STATIC_LINK
That will do the job, provided you don't want the regex code exposed from the dll.
Sorry! Just wanted to add a piece of information to my previous reply (to the effect that, alas, no, this does _not_ work). Both DLL and client are built as "Release" versions, using the "Multithreaded DLL" C Runtime Library (Projects->Settings->C/C++->Code Generation). I have no idea whether that might have any bearing, but I might as well try to mention everything I can think of. Thanks. Amittai
participants (2)
-
Amittai Aviram <amittai@amittai.com>
-
John Maddock