Knowledgebase:
Adding a preprocessor definition to the build command
Posted by Yoni Davidson on 04 May 2014 02:28 PM

Adding a preprocessor definition from cl command line is possible by adding the "/cl_add" option to your build command in the following way:
/cl_add=”/D DEFNAME=VALUE”
This actually adds the specified parameter to the cl command line when executed. /D stands for “define” option (see cl /? Help for details).

This statement is equivalent to writing “#define DEFNAME VALUE” in the source.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako incredibuild.kayako.com