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 

ld error when trying to include mikmodlib

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



Joined: 02 Jul 2005
Posts: 26

PostPosted: Mon Sep 05, 2005 2:21 am    Post subject: ld error when trying to include mikmodlib Reply with quote

Hi,

I'm trying to add music to my game, and I'm having trouble including mikmodlib to my project. I compiled the lib with no problem, and compiled the example included. But when I add and use the lib in my project, ld returns this error:

Code:

load_uni.c:22: relocation truncated to fit: R_MIPS_GPREL16 against 'modfp'


Well, a dozen of them actually. And the last says 'load_uni.c:71: additional relocation overflows omitted from the output'

I don't know what those errors mean, and I don't know why the example compiles fine.

Thanks in advance for any help.

mATkEUpON
Back to top
View user's profile Send private message
matkeupon



Joined: 02 Jul 2005
Posts: 26

PostPosted: Mon Sep 05, 2005 5:00 am    Post subject: Reply with quote

Well, made it run anyways. I had to change a few globals to static, and it compiled and ran just fine in my game :)

If anyone has the same problem, feel free to pm me.
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Sep 05, 2005 6:20 pm    Post subject: Reply with quote

Sounds like one of the modules (either yours or mikmodlib) have been built using the global base register option. I think this might be the -G option.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
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