toolchain compilation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sir,

i have build tool chain for sh  using following source
rpms :
1)binutils-2.13.90.0.18
2)gcc-3.2.3
3)glibc-2.2.5

After successfully compiling(make) I have installed 
all these .Now the problem is when I try to compile my
program with this new gcc(i.e sh-linux-gcc)like this
[spsingh@3di-4-linux test]$ sh-linux-gcc hello.c

following errors occur:

In file included from hello.c:1:
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:55:
syntax error before "
typedef"
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:60:
syntax error before "
__USING_NAMESPACE_STD"
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:
In function `__USING_NAM
ESPACE_STD':
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:71:
storage class specifi
ed for parameter `__FILE'
!
!
!
!
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:664:
storage class specif
ied for parameter `flockfile'
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:668:
storage class specif
ied for parameter `ftrylockfile'
/embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:671:
storage class specif
ied for parameter `funlockfile'
hello.c:3: syntax error before '{' token

I dont know what to do and where is the error and how
to locate it. If you could help me i will be highly
thankful to you




	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux