alright, i've been looking around to see if people have had this same problem, and i've notice that people have. but no one really answers there question. my problem is that it cant seem to instantiate a new object into my main. basically i can create a class but when i type "testClass *test = new testClass" it doesnt seem to work. if i type "testClass *test;" it compiles. but cant access any of the members of the class.
[root@localhost basic]# psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/pspdev/psp/sdk/lib main.o me.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -lstdc++ -o mebasic.elf
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(eh_personality.o): In function `base_of_encoded_value':
/tmp/pspdev/gcc-4.0.1/libstdc++-v3/../gcc/unwind-pe.h:122: undefined reference to `abort'
/tmp/pspdev/gcc-4.0.1/libstdc++-v3/../gcc/unwind-pe.h:122: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(eh_personality.o): In function `read_encoded_value_with_base':
/tmp/pspdev/gcc-4.0.1/libstdc++-v3/../gcc/unwind-pe.h:259: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(eh_personality.o): In function `get_ttype_entry':
/tmp/pspdev/gcc-4.0.1/libstdc++-v3/../gcc/unwind-pe.h:90: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(eh_terminate.o):../../../../libstdc++-v3/libsupc++/eh_terminate.cc:44: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(eh_terminate.o):../../../../libstdc++-v3/libsupc++/eh_terminate.cc:46: more undefined references to `abort' follow
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:69: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:71: undefined reference to `fputs'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:74: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:73: undefined reference to `fputs'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:74: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:51: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:52: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:95: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:97: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:97: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:87: undefined reference to `fwrite'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:88: undefined reference to `fputs'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:89: undefined reference to `fputc'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(vterminate.o):../../../../libstdc++-v3/libsupc++/vterminate.cc:97: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(cp-demangle.o): In function `d_identifier':
cp-demangle.c:(.text+0x1538): undefined reference to `memcmp'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(cp-demangle.o): In function `d_print_resize':
cp-demangle.c:(.text+0x3e18): undefined reference to `realloc'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(cp-demangle.o): In function `d_demangle':
cp-demangle.c:(.text+0x8fd8): undefined reference to `strncmp'
cp-demangle.c:(.text+0x9268): undefined reference to `strcat'
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/lib/libstdc++.a(cp-demangle.o): In function `__cxa_demangle':
cp-demangle.c:(.text+0x95d4): undefined reference to `strcpy'
/usr/local/pspdev/lib/gcc/psp/4.0.1/libgcc.a(unwind-dw2.o): In function `base_of_encoded_value':
../../gcc/unwind-pe.h:122: undefined reference to `abort'
../../gcc/unwind-pe.h:122: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/libgcc.a(unwind-dw2.o): In function `read_encoded_value_with_base':
../../gcc/unwind-pe.h:259: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/libgcc.a(unwind-dw2.o): In function `_Unwind_GetGR':
../../gcc/unwind-dw2.c:146: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/libgcc.a(unwind-dw2.o): In function `_Unwind_SetGR':
../../gcc/unwind-dw2.c:182: undefined reference to `abort'
/usr/local/pspdev/lib/gcc/psp/4.0.1/libgcc.a(unwind-dw2.o):../../gcc/unwind-dw2.c:947: more undefined references to `abort' follow
collect2: ld returned 1 exit status
There are 10 types of people in the world: Those who understand binary, and those who don't...
you might want to try reordering the libraries. This is what I used in my build.mak
# Link with following default libraries. Other libraries should be specified in the $(LIBS) variable.
# TODO: This library list needs to be generated at configure time.
PSPSDK_LIBS = -lpspdebug -lpsppower -lpspdisplay -lpspge -lpspctrl -lpspaudiolib -lpspaudio -lpspsdk
LIBS := -lstdc++ -lpng -lmad -lz -lm
LIBS := $(LIBS) $(PSPSDK_LIBS) $(PSPSDK_LIBC_LIB) -lpspuser -lpspkernel
just remove any of the psp libraries you don't use.