c++ - How to specify preprocessor options in Visual Studio -


on linux g++ use -dprogramname_version=1.6 , -deigen_no_debug set text , increase speed of execution respectively. doing testing on windows , having trouble duplicating executable vs 2013. searched around , found suggestions properties->c/c++->preprocessor->preprocessor definitions. agrees microsoft's documentation found here https://msdn.microsoft.com/en-us/library/hhzbb5c8.aspx. problem when try

/deigen_no_debug /dprogramname_version=1.6 

the log file shows default value of version 1.00 , execution time twice of expected time. /deigen_no_debug used c++ eigen while other used such:

#ifndef programname_version #define programname_version 1.00 #endif 

both have been tested , work on linux. answers on have been accepted makes me think there small trick missing make work.

praetorian gave correct answer. visual studio doesn't use same /d or -d g++, etc use. inserts you. correct usage shown in comment.

i'm guessing put /dprogramname_version=1.6 settings instead of programname_version=1.6. ms build insert /d when invoking compiler. – praetorian


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -