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