gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > SOLVED: Migrating to g++

#34124 - wiz - Thu Jan 13, 2005 10:15 pm

oh heck,

I really thought it would be a while before I bothered everyone with another question on here. I deeply appreciate all the help I have received from this board and I hope to one day add my own tips for people seeking help.

Today I thought I'd change to C++ so I can use classes, first of all I renamed all my .c files to .cpp files and suddenly lots of errors to fix?! - ok fixed them and then I realised I should also change from gcc to g++.

Since changing to G++ I'm getting a weird error which I have tried searching for answers:

../../devkitadvance/bin/../lib/gcc-lib/arm-agb-elf/3.0.2/../../../../arm-agb-elf
/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status

is this something about a lib? :*(

Any advise on how to fix it?

thanks once again!!

#34136 - wiz - Fri Jan 14, 2005 1:22 am

well this is embarrasing, I don't know how old my DevKitAdvance is but I must have installed it incorrectly when I 1st set it up; as I have now reinstalled DKA from the PERN project (zipped) and it compiled and working :)

It did seem to be a library file "libstdc++.a"

but Im happy now, sorry for posting too early!

Best regards,

wiz