Hi all,
I am having problems generating an executable using "mb-gcc", for a
simple
"hello world" program.
int main()
{
printf("Hello World\n");
}
$ mb-gcc -c t.c
On compiling it as above, it generates t.o (no errors/warnings)
$ mb-gcc t.c -o t
On compiling it as above, it gives the following error messages
/cygdrive/c/EDK_7.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze/3.4.1/../../
../.
./microblaze/lib/libc.a(write.o): In function `write':
/home/vasanth/dev/halite/env/Jobs/MDT/sw/nt/gnu1/newlib_bld/libgloss/write.c
:36:
undefined reference to `outbyte'
/home/vasanth/dev/halite/env/Jobs/MDT/sw/nt/gnu1/newlib_bld/libgloss/write.c
:34:
undefined reference to `outbyte'
/home/vasanth/dev/halite/env/Jobs/MDT/sw/nt/gnu1/newlib_bld/libgloss/write.c
:36:
undefined reference to `outbyte'
/cygdrive/c/EDK_7.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze/3.4.1/../../
../.
./microblaze/lib/libc.a(read.o): In function `read':
/home/vasanth/dev/halite/env/Jobs/MDT/sw/nt/gnu1/newlib_bld/libgloss/read.c:
32:
undefined reference to `inbyte'
collect2: ld returned 1 exit status
The link stage is causing errors....
please help me to solve this issue..!!
thanks,
Anuroop