[FIXED]Linker Problem Query

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

Moderators: cheriff, TyRaNiD

Post Reply
angus
Posts: 3
Joined: Mon Jan 04, 2010 2:41 am
Contact:

[FIXED]Linker Problem Query

Post by angus »

I'm getting quite a few

Code: Select all

relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr'
errors when compiling my code.
Now, I've read that putting -G0 in the CFLAGS will stop this error, but it hasn't seemed to do much. Do i have to recompile the PSPSDK/PSPToolchain with CFLAGS = -G0 or should it work by just adding the flag to the makefile of the thing i am compiling? Or do i have to do both? Obviously i don't want to have to recompile the SDK/Toolchain if i don't have to.

Any help appreciated.

EDIT: Fixed. Stupid error, had not set the -G0 flag properly.
Post Reply