forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[FIXED]Linker Problem Query

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
angus



Joined: 04 Jan 2010
Posts: 3

PostPosted: Mon Jan 04, 2010 2:48 am    Post subject: [FIXED]Linker Problem Query Reply with quote

I'm getting quite a few
Code:

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group