Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-11-06 07:39:39


The program options library currently doesn't select the dll-import library
when auto-linking to the dll build of the library - it always tries to link
to the static lib. The following patch fixes the issue:

$ cvs diff -u boost/program_options/config.hpp
johnmaddock_at_[hidden]'s password:
Index: boost/program_options/config.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/program_options/config.hpp,v
retrieving revision 1.2
diff -u -r1.2 config.hpp
--- boost/program_options/config.hpp 13 Jul 2004 15:12:24 -0000 1.2
+++ boost/program_options/config.hpp 6 Nov 2004 12:37:09 -0000
@@ -20,6 +20,10 @@
 // Set the name of our library, this will get undef'ed by auto_link.hpp
 // once it's done with it:
 #define BOOST_LIB_NAME boost_program_options
+// tell the auto-link code to select a dll when required:
+#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
+# define BOOST_DYN_LINK
+#endif

 // And include the header that does the work:
 #include <boost/config/auto_link.hpp>

OK to commit?

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk