Hello world not compiling

Prashant Sangal prashant.sangal at hitechroboticsystemz.com
Sat Jan 31 09:10:46 UTC 2009


Dear Friends, 

I have just built the buildroot package on my system. I wrote simple
"hello world" application, this is as follows:

#include"stdio.h"

int main()
{

printf("\n hellooo!!");
return 0;
}


before compiling it , i exported the path to arm-linux-gcc and verified
that it is exported 

then

]# arm-linux-gcc hello.c -o hello

and i got 

In file included from hello.c:1:
//usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from //usr/include/_G_config.h:44,
                 from //usr/include/libio.h:32,
                 from //usr/include/stdio.h:75,
                 from hello.c:1:
//usr/include/gconv.h:72: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/gconv.h:88: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/gconv.h:97: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/gconv.h:174: error: expected specifier-qualifier-list
before 'size_t'
In file included from //usr/include/stdio.h:75,
                 from hello.c:1:
//usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from //usr/include/stdio.h:75,
                 from hello.c:1:
//usr/include/libio.h:329: error: expected specifier-qualifier-list
before 'size_t'
//usr/include/libio.h:361: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/libio.h:370: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/libio.h:482: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/libio.h:484: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/libio.h:486: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '_IO_sgetn'
In file included from hello.c:1:
//usr/include/stdio.h:314: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/stdio.h:321: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/stdio.h:349: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/stdio.h:354: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/stdio.h:357: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/stdio.h:363: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/stdio.h:365: error: format string argument not a string
type
//usr/include/stdio.h:367: error: expected declaration specifiers or
'...' before 'size_t'
//usr/include/stdio.h:368: error: expected declaration specifiers or
'...' before '__gnuc_va_list'
//usr/include/stdio.h:369: error: format string argument not a string
type
//usr/include/stdio.h:616: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread'
//usr/include/stdio.h:622: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite'
//usr/include/stdio.h:644: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread_unlocked'
//usr/include/stdio.h:646: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite_unlocked'





Kindly let me know the solution out of this problem. 

with regards, 
Prashant Sangal
                                                                                                                                                                                                                        
                                                                                                                                                                                                        


-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India






More information about the uClibc mailing list