[C++-sig] MSVC project file

Brett Calcott brett.calcott at paradise.net.nz
Sat Nov 9 07:53:44 CET 2002


Hi all,

For those interested here is a MS project file that builds boost_python.

Create a directory under boost/libs/python/build

I called mine ./msvc-project.

Drop the file into the directory and then load it in DevStudio and build. It
will create a ./bin underneath it with boost_python.dll and
boost_python_d.dll.


David, (if you are listening) given the work in Boost.Build I'm not sure if
you are interested in this at all - though I would hazard a guess that there
will be more requests. In any case - adding some extra warning switches to
the detail/config.hpp makes the build a little easier to watch both for bjam
and DevStudio.

--- config_old.hpp Sat Nov 09 19:47:06 2002
+++ config.hpp Sat Nov 09 16:19:26 2002
@@ -32,7 +32,11 @@
 #   define BOOST_MSVC6_OR_EARLIER 1
 #  endif

-#  pragma warning (disable : 4786)
+# pragma warning (disable : 4786) // disable truncated debug symbols
+# pragma warning (disable : 4251) // disable exported dll function
+# pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or
'false'
+# pragma warning (disable : 4275) // non dll-interface class
+

 # elif defined(__ICL) && __ICL < 600 // Intel C++ 5


-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost_python.dsp
Type: application/octet-stream
Size: 5834 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20021109/e92bf4f7/attachment.obj>


More information about the Cplusplus-sig mailing list