- Jul 11, 2004
- 21,867
- 7
- 81
(Let me preface this by saying that I'm a Java developer. I haven't done C++ since I was an undergraduate and I was using Visual Studio at the time which 'just worked'.)
I've been setting up a small C++ project under Ubuntu. It took me a few minutes to download the necessary libraries and build it from the command line. I wanted to use an IDE with completion and such, so I installed Netbeans. Netbeans pulled in a few things from the Makefile, but it still couldn't resolve a bunch of headers including standard library stuff (e.g. stdio.h).
I had to add the following includes and the one processor definition to make Netbeans happy:
Not knowing what I'm doing, this took me about 2 hours and was pretty frustrating. I feel like I must have done something wrong. I feel like this shouldn't have been a manual process. I just pulled in standard stuff and stuff that should have been pulled in from the Makefile (like GL and FL).
I've been setting up a small C++ project under Ubuntu. It took me a few minutes to download the necessary libraries and build it from the command line. I wanted to use an IDE with completion and such, so I installed Netbeans. Netbeans pulled in a few things from the Makefile, but it still couldn't resolve a bunch of headers including standard library stuff (e.g. stdio.h).
I had to add the following includes and the one processor definition to make Netbeans happy:
Code:
// includes (some of these may not be needed, not quite sure)
/usr/local/lib
/usr/include
/usr/lib
/lib
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.6.3/include
/usr/include/c++/4.6.3
/usr/include/X11
/usr/include/GL
/usr/local/include/FL
/usr/include/c++/4.6/x86_64-linux-gnu
/usr/include/linux
/usr/include/x86_64-linux-gnu
/usr/include/x86_64-linux-gnu/asm
/usr/include/x86_64-linux-gnu/gnu
/usr/include/x86_64-linux-gnu/bits
/usr/include/x86_64-linux-gnu/sys
// preprocessor definitions
__x86_64__
Not knowing what I'm doing, this took me about 2 hours and was pretty frustrating. I feel like I must have done something wrong. I feel like this shouldn't have been a manual process. I just pulled in standard stuff and stuff that should have been pulled in from the Makefile (like GL and FL).
Last edited: