1/1
about the or32-uclinux-gcc
by Unknown on Feb 6, 2004 |
Not available! | ||
Hi all,
I used the pre-built the compiler that downloaded from the
opencorese webpage.
I use it to complie a very simple program in the following, but it fails.
#include
int main(void){
printf("Hello, world\n");
}
|
about the or32-uclinux-gcc
by Unknown on Feb 6, 2004 |
Not available! | ||
Hi all,
I used the pre-built the compiler that downloaded from the
opencorese webpage.
I use it to complie a very simple program in the following, but it fails and
gives some error message.
example.c
#include
int main(void){
printf("Hello, world\n");
return 0;
}
$ make
or32-uclinux-gcc -O2 -g -c -o example.o example.c
or32-uclinux-ld -Tram.ld -o example.or32 reset.o example.o
example.o: In function `main':
/home/Stephen/openrisc/or32-test/try/try/example.c:21: undefined
reference to puts'
make: *** [example.or32] Error 1
The compiler does not support the "printf" function? anyone have idea
about it?
Thank you very much.
Regards,
Stephen
|
about the or32-uclinux-gcc
by Unknown on Feb 6, 2004 |
Not available! | ||
* whli_interqos@yahoo.com.hk (whli_interqos@yahoo.com.hk) wrote:
Hi all,
I used the pre-built the compiler that downloaded from the
opencorese webpage.
I use it to complie a very simple program in the following, but it fails and
gives some error message.
example.c
#include
int main(void){
printf("Hello, world\n");
return 0;
}
$ make
or32-uclinux-gcc -O2 -g -c -o example.o example.c
or32-uclinux-ld -Tram.ld -o example.or32 reset.o example.o
example.o: In function `main':
/home/Stephen/openrisc/or32-test/try/try/example.c:21: undefined
reference to puts'
make: *** [example.or32] Error 1
The compiler does not support the "printf" function? anyone have idea
about it?
printf function is not provided in compiler package it's in the
libc package (for example uclibc). and there is one more thing.
#include
will thake system stdio.h file, probably located in /usr/include. this
is also not right since you are not building your program for i386 (or
whatever your host platform is) but for or32. you'd need or32 header files.
regards,
p.
|
1/1