Wait... now that I look at my failed build command more carefully, I
see that CXX_LDFLAGS is completely blank. Either that macro is
incorrect, or I'm not including whatever I need to, to generate it.
More research needed...
Dan
Dan Miller wrote:
Okay, as
far as I can tell, I'm doing this correctly; please update if
I am not:
1. Create a new app using petalinux-new-app
2. copy my source file into the resulting directory.
Unlike the default appname.c, my file is appname.cpp
3. In the Makefile:
app build: change all
CC => CXX,
LDFLAGS => CXX_LDFLAGS
LDLIBS => CXXLIBS
add new rule for %.cpp, change:
CC => CXX
CFLAGS => CXXFLAGS
All this is based on user/cxxtest/helloworld/Makefile
But, when I build, the file-compile is successful, but link fails:
mb-linux-g++ -o ulocate ulocate.o -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
/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
//*****************************************************
So, what am I doing wrong?
Dan Miller
___________________________
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/
___________________________
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/
|