lpcware

Problem with Conditional Compilation

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Italia on Mon Jan 19 05:12:21 MST 2015
Hi,

i have the following problem using Release and Debug compilation modality. When I compile my code in debug mode, I disable the watchdog timer. Now, when i'm in release mode, if i introduce the symbol NO_WATCHDOG in the debug windows symbol, this affects the release mode and the code under conditional compiletion is skipped (obvious that release mode is selected).

#ifndef NO_WATCHDOG
...
....
#endif


so, being in release mode, the portion of code within the condition block, is not compiled if in debug configuration symbol is defined NO_WATCHDOG, also if the release configuration mode is selected.
I beleave that the probleim is only in the symptactic analyzer, cause the compilale process is made good.



I hope has been clear. Thk for u help!

Outcomes