Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From the 'Ubuntu Software Center', I have installed Eclipse Platform Version: 3.7.2. and 'eclipse-cdt C/C++ Development Tools'. In the eclipse Samples at, I see only these for java, not for C/C++ as I need. Therefore I have downloaded hello-2.7.tar.xz from, unpacked it into my eclipse directory and made a new C Linux project for it. Its 'Project... Build all' does not find the file from the line

#include <config.h>
of the hello.c file as you can see from the listing

**** Build of configuration Debug for project hello-2.7 ****

make all 
Building file: ../src/hello.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/hello.d" -MT"src/hello.d" -o "src/hello.o" "../src/hello.c"
../src/hello.c:19:20: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [src/hello.o] Error 1

**** Build Finished ****

. Please advise me how to set an include system directory in the Eclipse Platform. (In its help, I have tried searching for it; but it only started an indexing that shows '0% complete' even after several hours. The CPU is

Release 12.04 (precise) 32—bit
Kernel Linux 3.5.0-39-generic
GNOME 3.4.2
Memory: 994.9 MiB
Processor: Intel Pentium(R) 4 CPU 3.00GHz x 2
System Status
Available disk space 39.4 GiB
.) At all, does the line
#include <config.h>
mean the same in Linux as I am used to from Windows and not a further file from the GNU pages? Thanks!

share|improve this question
According to… I have found five directories, usr/include/i386-linux-gnu among others, but the config.h file is in none of them. – Tomáš Pečený Aug 29 '13 at 19:30
After I have got 2 negative votes, I have completed the example lines. And started to search what does Autoconf mean with the GNU sources. – Tomáš Pečený Aug 30 '13 at 5:03
Close-voter(s): How is this not about Ubuntu? – Eliah Kagan Aug 30 '13 at 15:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.