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

[microblaze-uclinux] FIXED (maybe): C++ link issues



What I did, to get C++ files to link successfully, is I copied
/home/petalinux-v0.40-rc3/tools/linux-i386/microblaze-uclinux-tools/microblaze-uclinux/lib//libstdc++.a
to
$(ROOTDIR)/lib

and then everything just built!!  The trick was, to copy *only* libstdc++.a, NOT libstdc++.la
(otherwise I get a bunch of errors about non-existent paths that are in the .la file).

Now, the one thing I *don't* know is if that particular copy of the library is actually valid or not, since it was buried down in the middle of nowhere.  I confirmed that the executable does not run on the host platform, which confirms that it didn't use the host compiler/linker.  Beyond that, I'll have to wait until our Microblaze board is up and running to test further.

What's cool is that I next imported a 13-file, 5000-line application, made the same couple of changes in the petalinux-generated Makefile, and the whole thing just compiled and linked with no arguments!! 

So, if that copy of libstdc++.a is valid, I think I'm done!!

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/