Specifications

Changing Program Options and Fixing Syntax Errors
Developing a Simple Program
2-7
2.5 Changing Program Options and Fixing Syntax Errors
In the previous section, the portion of the program enclosed by the
preprocessor commands (#ifdef and #endif) did not run because FILEIO was
undefined. In this section, you set a preprocessor option with Code
Composer Studio. You also find and correct a syntax error.
1) Choose Project
Options.
2) In the Compiler tab of the Build Options window, select Preprocessor
from the Category list. Type
FILEIO
in the Define Symbols box. Press the
Tab key.
Notice that the compiler command at the top of the window now includes
the -d option. The code after the #ifdef FILEIO statement in the program
is now included when you recompile the program. (The other options may
vary depending on the DSP board you are using.)