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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -