Answer the question
In order to leave comments, you need to log in
How to add #define from nmake script?
Hello.
Somehow the Internet is not rich in descriptions for the nmake syntax. Can someone tell me how the analogue of the make line will look like for nmake: CPPFLAGS=-DFOO
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
CPPFLAGS is an internal makefile variable to which flags are appended to be passed to the compiler. She can be called anything. Same with nmake.
Transferring defines to the studio compiler is done via /D "MACRO_NAME" ( https://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question