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?
Search found 125 matches
- Thu Jan 12, 2006 1:20 am
- Forum: PSP Development
- Topic: dynamic memory allocation problem, please help
- Replies: 14
- Views: 2969
- 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...
- Sun Jan 01, 2006 12:29 am
- Forum: PSP Development
- Topic: Link error when using C++ exceptions (try-catch)
- Replies: 2
- Views: 1527
- Sat Dec 31, 2005 8:31 pm
- Forum: PSP Development
- Topic: fread weirdness with larger files
- Replies: 10
- Views: 5179
- 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);...