Answer the question
In order to leave comments, you need to log in
How to use #ifdef in an included file along with the -dN compilation flag?
Actually the question is higher. I have a main.c file in which the file1.c is included, where the #ifdef DEBUG are located. When using this line for compilation: gcc main.c -dDEBUG -o main.exe, the following warning is issued:
cc1.exe: warning: unrecognized gcc debugging option: E
cc1.exe: warning: unrecognized gcc debugging option: B
cc1.exe: warning: unrecognized gcc debugging option: G
Answer the question
In order to leave comments, you need to log in
The problem was solved by changing the case -d to -D. Should have read the original documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question