kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
482 stars 29 forks source link

default_instrument symbol duplicated on AmigaOS #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
please contact me.. :) i found no e-mail or other way of making contact with 
you..
spotUP at gmail dot com

Original issue reported on code.google.com by spo...@gmail.com on 26 Aug 2010 at 9:07

GoogleCodeExporter commented 9 years ago
i am at the link stage now, but i get this error:

Linking klystrack...
/SDK/local/newlib/lib/libSDL_mixer.a(instrum.o):(.sbss+0x0): multiple 
definition of `default_instrument'
objs.debug/mused.o:/Bob/Coding/Projects/klystron-klystrack/klystrack/src/mused.c
:236: first defined here
ld: Warning: size of symbol `default_instrument' changed from 56 in 
objs.debug/mused.o to 4 in /SDK/local/newlib/lib/libSDL_mixer.a(instrum.o)
ld: Warning: type of symbol `default_instrument' changed from 2 to 1 in 
/SDK/local/newlib/lib/libSDL_mixer.a(instrum.o)
gmake[1]: *** [bin.debug/klystrack] Error 1

Original comment by spo...@gmail.com on 26 Aug 2010 at 9:26

GoogleCodeExporter commented 9 years ago
Hi, sorry for the delay.

This seems weird, I have no experience with other than vanilla MinGW/SDL on 
Windows so I don't know if SDL on Amiga has some extra stuff (looks like 
SDL_mixer indeed has a similarly named function) or if it's because SDL_mixer 
is not a DLL or something. You could rename the function to e.g. 
klystrack_default_instrument in mused.c and whereever it's used in Klystrack. 
It should then link properly. 

I'll try to fix this problem in a few days with that rename trick when I get 
home.

Original comment by kometb...@gmail.com on 1 Sep 2010 at 1:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r791.

Original comment by kometb...@gmail.com on 14 Sep 2010 at 10:38

GoogleCodeExporter commented 9 years ago
Renamed.

Original comment by kometb...@gmail.com on 14 Sep 2010 at 10:38