ContentsIndexHome
PreviousUpNext
C++ using Visual Studio

This tutorial takes you through the basic steps of creating and configuring a C++ project in Visual Studio 2013 for use with the SDK.

These instructions were written for Visual Studio 2013; the exact menu name may differ slightly under different versions of Visual Studio. 

 

Open a New Project 

Open the New Project wizard by choosing File > New > Project

 

and type a name for your application, e.g. AimmsApplication, and press OK and Finish.

Adjust the Character Set

Adjust the Character Set by Project > Properties and selecting the General node. 

 

Set Configuration to All Configurations and adjust Character Set to Use Multi-Byte Character Set.

Adjust the include path

Adjust the include path by Project > Properties and selecting the C++ > General node: 

 

Set Configuration to All Configurations and set Additional Include Directories to:

$(AIMMS_SDK_HOME)\cpp\include
Adjust the library path

Adjust the library path by Project > Properties and selecting the Linker > General node: 

 

Set Configuration to All Configurations and set the Additional Library Directories to:

$(AIMMS_SDK_HOME)\cpp\lib
Adjust the library dependencies

Adjust the library path by Project > Properties and selecting the Linker > Input node: 

 

Set Configuration to All Configurations and set the Additional Dependencies to:

aimmssdk-vc120_$(PlatformName)_$(ConfigurationName).lib

or, if working with Visual Studio 2010, to:

aimmssdk-vc100_$(PlatformName)_$(ConfigurationName).lib

This is required because several of the STL classes (e.g. std::string) have a different (binary) layout between different versions of Visual Studio. Failing to do so will result in access violations.

Adjust the runtime environment

Adjust the runtime environment variable PATH by Project > Properties and selecting the Debugging node: 

 

Set Configuration to All Configurations and set the Environment to:

PATH=%AIMMS_SDK_HOME%\cpp\bin;%PATH%