Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Cannot Compile Anything

  Date: Dec 06    Category: Unix / Linux / Ubuntu    Views: 363
  

I have been trying to generate a program for the "Make Controller" but I have
been frustrated at every turn. In the Linux IDE tools, I could not even get a
simple HelloWorld.c to compile without a multitude of errors in the include
files. I have even tried a simple command-line compile, but it, too, barfs on
the include files.

Here is the error log:

ed@ed-hp:~$ gcc HelloWorld.c
In file included from /usr/include/stdio.h:75,
from HelloWorld.c:23:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before
`size_t'
/usr/include/libio.h:364: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/libio.h:373: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/libio.h:493: error: expected `=', `,', `;', `asm' or
`__attribute__' before `_IO_sgetn'
In file included from HelloWorld.c:23:
/usr/include/stdio.h:312: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/stdio.h:319: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/stdio.h:361: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or `...' before
`size_t'
/usr/include/stdio.h:678: error: expected `=', `,', `;', `asm' or
`__attribute__' before `fread'
/usr/include/stdio.h:684: error: expected `=', `,', `;', `asm' or
`__attribute__' before `fwrite'
/usr/include/stdio.h:706: error: expected `=', `,', `;', `asm' or
`__attribute__' before `fread_unlocked'
/usr/include/stdio.h:708: error: expected `=', `,', `;', `asm' or
`__attribute__' before `fwrite_unlocked'
ed@ed-hp:~$

The file /usr/include/stdio.h is 30.3 KB and /usr/libio.h is 17.3 KB. They were
both last modified on 17AUG2009, which may have been when I installed one or
more IDEs or yagarto, or the gnu-arm toolchain. Do these file sizes sound about
right? I tried re-installing gcc, but that had no effect on the errors.

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 06    

I have the same sizes for the files on my system which works fine, but
the modification dates for both files are 09APR2009.

 
Answer #2    Answered On: Dec 06    

I neglected to mention in my original post that I
am running 8.04 kernel 2.6.24.24.

 
Answer #3    Answered On: Dec 06    

And I forgot to tell you that my system runs 9.04 kernel
2.6.28-15-generic and gcc version 4.3.3. But that probably doesn't matter.

 
Didn't find what you were looking for? Find more on Cannot Compile Anything Or get search suggestion and latest updates.




Tagged: