next up previous contents
Next: Cygwin Up: Building the OS Project Previous: Building the OS Project   Contents

Microsoft Visual Studio (MSVS)

Microsoft Visual Studio solution and project files are provided for users of Windows and the Microsoft Visual Studio IDE. Care must be taken to distinguish different versions of MSVS. Even though Microsoft released Version 9 (as of 15 November 2007), we currently support only Versions 7 and 8. To add to the confusion, these versions are also sometimes referred to by their (approximate) release date, which is 2008 for Version 9, 2005 for Version 8 and 2003 for Version 7. In addition there is a free version of the Visual Studio IDE C++ compiler, called Visual C++ Express Edition. The following steps are necessary to build the OS project using the Microsoft Visual Studio IDE.

Step 0
If MSVS Version 7 or 8 of the C++ compiler cl is already installed, go to to Step 2.

Step 1
Download and install the Visual C++ Express Edition, which is available for free at Microsoft's web site. This download contains the Microsoft cl C++ compiler along with necessary libraries.

Version 7 is no longer available for download from Microsoft. Version 8 is at http://msdn2.microsoft.com/en-ca/vstudio/aa700736.aspx If you are adventurous, you may wish to download Version 9, which is at http://msdn2.microsoft.com/en-us/express/future/bb421472.aspx.

Step 2
The part of the OS library responsible for communication with a remote server depends on some underlying Windows socket header files and libraries. These files are part of the commercial for-pay version, but are not included in the Visual C++ Express download. If have the Express Edition, it is necessary to also download and install the Windows Platform SDK. This software is version independent and is at http://msdn2.microsoft.com/en-us/express/aa700755.aspx.

Step 3
In the COIN-OR/OS directory you will find the folder MSVisualStudio, which contains root directories organized by the version of Visual Studio. We currently provide solution files for Version 7 and Version 8. Each contains project files for building the unitTest (OSTest.vcproj), the OSSolverService (OSSolverService,vcproj), and the OS library libOS.vcproj. The Microsoft Visual Studio files are automatically downloaded with an SVN checkout. They are also contained in the tarballs (see Section 3.2).

Open the project files (for instance by double clicking on them in Windows Explorer) and select Build from the menu bar.

Step 4
Run the unitTest. Connect to the directory COIN-OR/OS/test directory and run either the release or debug version of the unitTest executable.


next up previous contents
Next: Cygwin Up: Building the OS Project Previous: Building the OS Project   Contents
Kipp Martin 2008-01-16