4
1
- IDE: NetBeans 6.8
- OS: Fedora 12
I have been having this problem for a long time now. NetBeans is almost impossible to use with C/C++, maybe because it was not made for it in first place.
Anyways what happens is this: I have this setup for C/C++
But, the programs are displayed like this:
It is not able to find any header file!!
I know it is a C++ program, the same thing happens with #include <cstdio>
. As a result, it is not able to find the definition of printf
and fails.
Same thing happens with a .c
file.
Also, gcc works fine from the command line.
the problem exists still:
$ find / -name stdlib.h
/usr/include/bits/stdlib.h
/usr/include/c++/4.4.3/tr1/stdlib.h
/usr/include/stdlib.h
/usr/share/syslinux/com32/include/stdlib.h
/usr/arm-gp2x-linux/include/stdlib.h
Did someone face this problem before? What do I need to do to make this work?
I tried that. not working still. I've added screenshots in the question. Please have a look. thanks! – Lazer – 2010-05-19T14:20:37.953
1@eSKay: you said that gcc compiles fine from the command line. Does it compile directly from netbeans too? Try compiling with full debug info and choose "reparse project" from CodeAssistance menu. Some times this helps. – Mr Shunz – 2010-05-20T08:59:27.697