Successful cross compile of the test program!! WOOHOO!

I’ve added C++ code to the sample code found else where on this site. At first I was not able to compile it and kept getting an “undefined reference __gxx_personality_sj0” After much Google searching and head scratching, I was able to find a reference that said I needed to add “-lstdc++” to my library list.

That worked and I was able to compile.

After that a quick copy to the Slug I was able to confirm everything was operational. I have to admit that it took me a while to figure out which file I needed to add this flag to. It ended up being the bb (BitBake) file itself.

do_compile () { ${CC} ${CFLAGS} ${LDFLAGS} k8055.cpp someClass.cpp -o k8055 -lstdc++ -lusb }

I have included the code with this message.
k8055.zip

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.