Search found 5 matches

by emigree
Wed Jul 06, 2005 3:38 pm
Forum: PSP Development
Topic: can C++ be used with PSPSDK
Replies: 7
Views: 3287

Yes, it's the same problem. It goes away it you get a new version of the sdk from svn. Or you could just add an extern to pspmoduleinfo.h as suggested.
by emigree
Wed Jul 06, 2005 4:35 am
Forum: PSP Development
Topic: C++ linking problems with new & delete operator, and oth
Replies: 15
Views: 6098

Yes, it seems that compiling c++ programs work if you link with -lpsplibc -lstdc++. new and delete works but if you try to use any stl stuff like string, vector or whatever you get alot of link errors.
by emigree
Thu Jun 30, 2005 3:46 pm
Forum: PSP Development
Topic: Does it support...
Replies: 7
Views: 3654

Yes I also thought that would be the problem. I've tried putting it before and after libc. That gave me alot of errors complaining about missing references to functions that should be in libc. Wich reminded me of reading that psplibc was just a limited set of functions. Then I tried defining this &q...
by emigree
Thu Jun 30, 2005 8:56 am
Forum: PSP Development
Topic: Does it support...
Replies: 7
Views: 3654

Oh yes, I figured that out after fiddling a bit. Now I'm having problems linking in libstdc++. psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L/usr/local/pspd ev/psp/lib -L. -L/usr/local/pspdev/psp/sdk/lib -lstdc++ main.o -lpspdebug -lp splibc -lpspkernel -o cpptest.elf main.o: In fu...
by emigree
Wed Jun 29, 2005 8:59 am
Forum: PSP Development
Topic: Does it support...
Replies: 7
Views: 3654

I tried to convert sdktest to a cpp program by just renaming main.c to main.cpp but I get this error: psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I. -I/usr/local/p spdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti -c -o main.o mai n.cpp psp-gcc -I. -I/usr/local/pspdev/...