Menu

Compile time directives

2002-09-15
2012-09-26
  • Nobody/Anonymous

    Hi,

    I would like to switch debugging code from being compiled by using a directive, how do I go about doing this?

    Thanks,
    Rich.

     
    • Nobody/Anonymous

      There is an option in the gcc or g++ that allows you to set defines when you run the compiler.

      You need to use -Dxxxx=yyyy where xxxx is your variable and yyyy is what you want to set it to.

      In DEV-C++ you can add it under
      Project->Project Options->Compiler

      BlakJak :]

       

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.