This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Netbeans6: "cannot find include file", but it compiles without errors. Why does Netbeans underlines my includes with a red line, even if it finds them while compiling?
In fact error highlighting has nothing to do with a compilation process so it uses another mechanism. This error means that while parsing your project this include file was not found. Could you please provide some additional information about your project, what your project structure is and what type of the project you use, managed or makefile-based (I guess it's makefile-based one). It would be great if you could provide the part of your project where this error happens.
The project I created was just a simple Hello world programm for testing purposes. All I did was: New Project -> C/C++ Application -> Finish (I didn't even change the name of the project) Right klick on the project -> New -> Main ++ File #include <stdlib.h> #include <iostream.h> int main(int argc, char** argv) { printf("Hello world!\n"); return (EXIT_SUCCESS); }
I forgot to metion that this problem exists on Windows XP only, on Linux it's working just fine!
confirmed. I have same problem in Mandriva 2008. Scenario: - Push Tools|Options - Select C/C++ -> Code Assistance ==> Include directive field is empty
Created attachment 54465 [details] Screenshot
It is P1 for me. IDE cannot find predefined include paths if I am using the localized gcc. varoxxx, can you run 'gcc -x c -v -E nul' command in terminal on Windows XP?
Created attachment 54466 [details] gcc -x c -v -E /dev/null
Hey Soldatov, I have windows installed on my work-notebook only, so I can paste the output in about 3 weeks. Sorry about that
As I understand the reason is that the compiler you use has localized messages. That's why its output is parsed incorrectly. I believe we'll have the same issue with any compiler that has localized messages.
The compiler I am using is gcc of cygwin the newest version (I can't be more exact) Merry Christmas!
Fixed: Checking in GNUCorCCCompiler.java; /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/compilers/GNUCorCCCompiler.java,v <-- GNUCorCCCompiler.java initial revision: 1.1 done Checking in GNUCCCompiler.java; /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/compilers/GNUCCCompiler.java,v <-- GNUCCCompiler.java new revision: 1.22; previous revision: 1.21 done Checking in GNUCCompiler.java; /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/compilers/GNUCCompiler.java,v <-- GNUCCompiler.java new revision: 1.22; previous revision: 1.21 done
works wrong on my computer at home
Fixed. Checking in GNUCCCCompiler.java; /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/compilers/GNUCCCCompiler.java,v <-- GNUCCCCompiler.java new revision: 1.2; previous revision: 1.1 done
fixed many time ago. verified in NetBeans 6.1.