linking error using mb-g++

Nov 05, 2007 0 Replies

Specification EDK version:8.2i FPGA Board: Virtex II Pro


My source code requires g++ compiler. However, when trying to use g++ to compile a very simple code on EDK 8.2i, the following error appears.



/microblaze_a0/lib//libxil.a(xilfatfs_wd.o): In function `make_root_directory': /cygdrive/c/............/microblaze_a0/libsrc/xilfatfs_v1_00_a/src/src/ xilfatfs_wd.c(.text+0x238): undefined reference to `get_partition_info' collect2: ld returned 1 exit status



This linker error does not occur when using gcc compiler, but my source code requires g++ compilation. Has anyone encountered this problem before?



Maybe its possible the xilfatfs_fat.c file is written for gcc compiler only.....



Priyantha De Silva



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required