Hello Everybody.
I tried to define in the build-options in the dialogue
Project >> Build options >> Compiler-settings >> #defines (individual target setting) a preprocessor-variable with a value like here:
RELEASE 0
(trial to define the preprocessor-constant
RELEASE with the value
0)
After starting the build-process (gnu-compiler) I've got the following error in the
Build messages File|Line|message |
0 | |No such file or directory|
In the
Build log I found:
mingw32-g++.exe -Wall -fexceptions
-D__dsPIC30F4011__
-DSEND_HELLO_WORLD
-DUNITTEST
-DSHOW_FILE_OF_USE
-O2
-DRELEASE 0
-I..\..\..\..\.. (more include-pathes)
-c D:\... sorcepath ...\c\tst_pwm_oc.cpp
-o obj\Release_0\13_Tests_\UnitTest\TL\tst\c\tst_pwm_oc.o
mingw32-g++.exe: 0: No such file or directory
I assume that mingw (the compiler) is not able to understand that the character-sequence
0 should be the content of the preprocessor-constant
RELEASE. Is this right? If yes, is there a possibility to change the configuration in the dialog so that the compiler gets an valid value-definition? Currently I use as a workaround a
RELEASE_0 (without a value) in the compiler-settings of the project together with an external header-file with a compiler-switch like this:
#if defined(RELEASE_0)
#define RELEASE 0
#elif defined(RELEASE_1)
#define RELEASE 1
#elif defined(RELEASE_2)
#define RELEASE 2
#else
#endif
What is the way recommended by the C::B team?
Best regards,
Eckard Klotz.
PS.: I use the lates nigthly 8248 on windows xp sp3 together with mingw 4