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

[microblaze-uclinux] build C++ apps



Okay, from Chris' makefile, I learned that the C++ compiler pseudo-name is CXX ... never knew that before... Once I changed to that, the only build problem I have is:

root@damien:/home/petalinux-v0.40-rc3/software/user-apps/ulocate# make clean all
rm -f ulocate *.elf *.gdb *.o
mb-linux-g++  -c -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall  -mno-xl-soft-div -mxl-barrel-shift -mcpu=v7.20.a -mxl-multiply-high -mno-xl-soft-mul -mhard-float  -DEMBED -I/home/petalinux-v0.40-rc3/software/petalinux-dist -I/home/petalinux-v0.40-rc3/software/petalinux-dist/include -I/home/petalinux-v0.40-rc3/software/petalinux-dist/include -Dlinux -D__linux__ -Dunix -DLINUX -o ulocate.o ulocate.cpp
mb-linux-g++   -L/home/petalinux-v0.40-rc3/software/petalinux-dist/lib -o ulocate ulocate.o
/home/petalinux-v0.40-rc3/tools/linux-i386/microblaze-glibc-root/bin/../lib/gcc/microblaze-linux-elf/4.1.1/../../../../microblaze-linux-elf/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [ulocate] Error 1

//*******************************************
hmmm... I see a copy of libstdc++.a in:
/home/petalinux-v0.40-rc3/tools/linux-i386/microblaze-uclinux-tools/microblaze-uclinux/lib/libstdc++.a
I wonder if I just need to explicitly path to that library?  I suspect there's an easier way, though!!




___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/