Reputation: 81
It is a possible to pass argument to compiler (command line) and set defined variables:
Example:
#define EXVALUE
and I want to define EXVALUE at compiling:
application.cpp -8
'-8' it is a command line argument to define EXVALUE. So I hope that You will understand what I want, and will help me.
I use Visual Studio C++ 2008 Express Edition.
Thanks. (Sorry for english bads)
Upvotes: 1
Views: 1790
Reputation: 39390
Visual Studio (so also Visual C++ EE) uses /D
option.
Example:
/D "BOOST_ALL_STATIC_LINK"
You can do it by GUI : Project Properties
->C/C++
->Preprocessor
->Preprocessor Definitions
First link in Google for visual studio preprocessor definitions
has really nice information, if you need more.
Upvotes: 1