Linker error when using C++

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
DennisH
Posts: 4
Joined: Tue Jul 05, 2005 6:51 pm
Location: Berlin, Germany

Linker error when using C++

Post by DennisH »

I've encountered an error while linking my project.
At first I used standard C and everything worked fine, then I just switched to C++ without changing anything in the code and I get this linker error:
/cygdrive/c/Programme/PSPDev/bin/../lib/gcc/psp/4.0.0/../../../../psp/lib/crt0.o
: In function `__entrytable':
crt0.S:(.rodata.sceResident+0xc): undefined reference to `module_info'
collect2: ld returned 1 exit status
make: *** [pgl.elf] Error 1
I already tried looking for the same problem in Google but haven't found anything so far. I'm about to switch back to C but that would make my project a bit more complicated in the future.
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

Your post is answered HERE
Lego of my Ago!
DennisH
Posts: 4
Joined: Tue Jul 05, 2005 6:51 pm
Location: Berlin, Germany

Post by DennisH »

Wow, thanks.
And sorry for my blindness.
This can be closed now...
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Closed.
Locked