Hi,
I would like to switch debugging code from being compiled by using a directive, how do I go about doing this?
Thanks, Rich.
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.
Hi,
I would like to switch debugging code from being compiled by using a directive, how do I go about doing this?
Thanks,
Rich.
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 :]