I devellop a system based on PPC405 architecture and I have a cross
I am a novice in programmation and I cant resolve a library problem (
I think ).
I compiled a kernel with a cross compiler and now I want compil a
program to write on a ISA bus.
When I compile my program, the cross-compiler doesnt found the
fonction "readb" on my libraries.
I think I find the good library but when I add the directory , the
result is the same.
My cross-compiler name is "p405-gcc", the error message is :
>[mip405@archi2 isa1]$ p405-gcc -o testisa -s sebisa.c
>sebisa.c: In function `main':
>sebisa.c:57: warning: return type of `main' is not `int'
>/home/mip405/tmp/ccwoA8Pi.o: In function `main':
>/home/mip405/tmp/ccwoA8Pi.o(.text+0x1c): undefined reference to
>/home/mip405/tmp/ccwoA8Pi.o(.text+0x1c): relocation truncated to fit:
>collect2: ld returned 1 exit status
I doesnt know if my problem is really a library problem but I cant
continue the devellopement.
The program " sebisa.c " is :