If you open the solution file of DEVSpp/DEVSpp.sln, Visual
Studio 2005
opens the associated project files
including DEVSpp.vcproj as well as those of the example
projects as shown in Figure 5.1.
You can open each example solution individually. For example, if
you open DEVSpp/Examples/Ex_PingPong/Ex_PingPong.sln file,
you can see that only DEVSpp project and Ex_PingPong
project are opened in Solution Explorer window of Visual Studio
2005
. To run each example, we should build DEVSpp
first and then build the example project.
In order to run the examples provided in DEVSpp/Examples
folder, we don't have to change the compile and build options at
all. But if you want to know the settings inside, the following
information will be useful.
There are four different ways to compile DEVSpp library in DEVS++
verion 1.4.1The combinations are given by {debug, release}
cross {static, dll}. For example debug_static is one
combination, release_dll is another, etc. Each
configuration will create its own folder, and there will be
DEVSpp.dll and DEVSpp.lib for all *_dll
options, and DEVSpp.lib for all *_static options.
The special settings of Configuration Properties for DEVS++
are:
*_dll configurations,
*_static configurations.
../
WIN32;DEVSpp_EXPORT; for all configurations
DLL; for *_dll configurations.
_DEBUG; for debug_* configurations.
NDEBUG; for release_* configurations.
DEVSpp.vcproj file. But the reader could make her or his
own examples. The special settings of Configuration
Properties for Ex_* examples are:
../../../
WIN32; for all configurations.
DLL; for *_dll configurations.
_DEBUG; for debug_* configurations.
NDEBUG; for release_* configurations.
$(SolutionDir)$(ConfigurationName) for all configurations.