non-compiiled code check setting
已完成
I have a Makefile project that I compile multiple times with different macro definitions. I define these parameters in the Makefile under CFLAGS. However, my editor is not aware of this, so it marks a significant portion of my code as "non-compiled code."
Is it possible to manually set macros in the IDE? Or can I disable the "non-compiled code" check?
请先登录再写评论。
Hello!
I can't reproduce the issue in a simple project.
I added
-DFOO
toCXXFLAGS
in my Makefile and reloaded the project (Tools | Makefile | Reload Makefile Project
), and it was correctly recognized in my source code - the code inside#ifdef FOO
-#endif
wasn't marked as non-compiled:Tools | Makefile | Clean and Reload Makefile Project
?Hello
I define parameters like you: `-DFOO` in CFLAGS.
I have issue for unsupported compiler:
Unexpected compiler output.This compiler might be unsupported.
If you are using GCC/Clang, please report the bug in https://youtrack.jetbrains.com/issues/CPP.
I use avr-gcc compiller.
Help | Diagnostics Tool | Show Compiler Info
from the main menu, and share the entire output with us.Yes, I can.
This is entire out, which I see the warning, but It is useless, I think.
Compile project is OK. I have set Makefile Target and It is works.
Compiler info:
My define is ‘MB_ENABLE’. Its here, but in my code is MB_ENABLE market still as non-compile.
I installed gcc-avr, binutils-avr, and avr-libc in my Ubuntu Docker container, and I can't reproduce the “Unexpected compiler output. This compiler might be unsupported” warning with a simple Makefile project and the avr-gcc compiler:
Also
-DFOO
is correctly recognized in the code:OK, I find problematic line in Makefile:
If I remove this line, everything works fine without any errors. I dont need this feature, so my problem is solved. Thanks you!
-----
1. The error message was in the notifications: