Search found 125 matches

by PeterM
Thu Jan 12, 2006 1:20 am
Forum: PSP Development
Topic: dynamic memory allocation problem, please help
Replies: 14
Views: 2969

You should just be able to add -lstdc++ to your LIBS variable and have it work magically.

By the way, why not use one of the STL containers instead of mallocing your own?
by PeterM
Sun Jan 01, 2006 2:43 am
Forum: PSP Development
Topic: fread weirdness with larger files
Replies: 10
Views: 5179

Thanks for the tip. I tried it out earlier (backing up my game saves, formatting the card, then restoring the saves) and it seems to have helped. I still get the occasional problem though - e.g. files refusing to delete from the memory stick - I think my memory stick is knackered... Thanks again for...
by PeterM
Sun Jan 01, 2006 12:29 am
Forum: PSP Development
Topic: Link error when using C++ exceptions (try-catch)
Replies: 2
Views: 1527

I've gotten exceptions working before, but I can't immediately see anything really wrong with your command lines.

Try adding -lstdc++ to the LIBS variable in the makefile?
by PeterM
Sat Dec 31, 2005 8:31 pm
Forum: PSP Development
Topic: fread weirdness with larger files
Replies: 10
Views: 5179

This may actually be a memory card corruption problem for me only - copying files onto the PSP via USB in a different order moves the problem to a different file.

On some files the PSP locks up completely.
by PeterM
Sat Dec 31, 2005 7:36 pm
Forum: PSP Development
Topic: fread weirdness with larger files
Replies: 10
Views: 5179

fread weirdness with larger files

Hello, I'm attempting to port a game to PSP, and for some reason, the fread function has problems with large files. With a file on the memory stick which is around 2MB in size, the following call: FILE* file = fopen("./myfile.dat", "rb"); int read = fread(buffer, 1, 65536, file);...