| View previous topic :: View next topic |
| Author |
Message |
matkeupon
Joined: 02 Jul 2005 Posts: 26
|
Posted: Mon Sep 05, 2005 2:21 am Post subject: ld error when trying to include mikmodlib |
|
|
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 |
|
 |
matkeupon
Joined: 02 Jul 2005 Posts: 26
|
Posted: Mon Sep 05, 2005 5:00 am Post subject: |
|
|
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 |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
Posted: Mon Sep 05, 2005 6:20 pm Post subject: |
|
|
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 |
|
 |
|