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

[microblaze-uclinux] microblaze-uclinux toolchain help



Title: Message
I test the compiler with a simple program test.c, the details listed below:
1.
    1)test.c:
        int main()
        {
                return 0;
        }
    2) mb-gcc test.c
    the command is successful and a file called "a.out" appear
2.
  1)test.c
        #include <stdio.h>
        int main()
        {
                printf("hello, world");
                return 0;
        }
    2) mb-gcc test.c
    the error message are as follows:
========================================================
/usr/local/bin/../lib/gcc-lib/microblaze/2.95.3-4/../../../../microblaze/lib/libc.a(write.o): In function `write':
write.o(.text+0x34): undefined reference to `outbyte'
write.o(.text+0x4c): undefined reference to `outbyte'
/usr/local/bin/../lib/gcc-lib/microblaze/2.95.3-4/../../../../microblaze/lib/libc.a(read.o): In function `read':
read.o(.text+0x34): undefined reference to `inbyte'
========================================================
 
I am a beginer in this area. Can anyone tell me how to solve the problem. What should I do with include files?
 
Thank you
 
Luo