subdural
Junior Member level 1
- Joined
- Aug 21, 2004
- Messages
- 19
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Neutral Zone
- Activity points
- 173
arm-elf-gcc hello world
Hi All,
I'm newbie. I need your expertise advice on troubleshooting arm-elf-gcc on cygwin.
a) I installed the cygwin setup (full installation)
b) I installed the gnuarm toochain v4.0.0 for cygwin (windows)
I wrote the simple C program (hello world) and compile the program on gcc at cygwin is succeded ant got out put "HELLO WORLD"
main()
{
printf ("Hello World!\n");
}
but when I compile using arm-elf-gcc compile on cygwin I got this message
$ arm-elf-gcc hello.c
hello.c: In function 'main':
hello.c:3: warning: incompatible implicit declaration of built-in function 'printf'
HOWEVER using gcc is successful
$ gcc hello.c
$ gcc hello.c -o hello.exe
$ hello.exe
Hello World!
Kindly please help me
thanks
[/img]
Hi All,
I'm newbie. I need your expertise advice on troubleshooting arm-elf-gcc on cygwin.
a) I installed the cygwin setup (full installation)
b) I installed the gnuarm toochain v4.0.0 for cygwin (windows)
I wrote the simple C program (hello world) and compile the program on gcc at cygwin is succeded ant got out put "HELLO WORLD"
main()
{
printf ("Hello World!\n");
}
but when I compile using arm-elf-gcc compile on cygwin I got this message
$ arm-elf-gcc hello.c
hello.c: In function 'main':
hello.c:3: warning: incompatible implicit declaration of built-in function 'printf'
HOWEVER using gcc is successful
$ gcc hello.c
$ gcc hello.c -o hello.exe
$ hello.exe
Hello World!
Kindly please help me
thanks
[/img]