Menu

Setting Preprocessor definitions

2002-10-31
2012-09-26
  • Nobody/Anonymous

    Hi :
       Could anybody tell me how to set the preprocessor definitions in a project like MS VC++?
       Thanks.

     
    • Nobody/Anonymous

      In Project Options, under Additional Command-line options to the Compiler, add

      -Ddefinition

      where "definitio" is the literal you want defined. You can add several -D options, e.g.

      -D_DEBUG -D_MY_FLAG -D_IMPORTANT_NUMBER=3

       
    • Nobody/Anonymous

      Thanks for your answer

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.