-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMIGAOS4: undefined reference on linking #241
Comments
Amiga code hasn't changed and it links for me, but I'm using an older sdk. diff --git a/src/file_io.c b/src/file_io.c
index 07ea500..1edcb21 100644
--- a/src/file_io.c
+++ b/src/file_io.c
@@ -56,6 +56,9 @@
#elif defined(WILDMIDI_AMIGA)
#include <proto/exec.h>
#include <proto/dos.h>
+#ifdef __amigaos4__
+#include <dos/obsolete.h>
+#endif
#else
#if defined(__unix) || defined(__unix__) || defined(__APPLE__)
#include <pwd.h> |
Unfortunately no.
|
sorry for the mess...amiga browser is...old |
Well, I'm stumped.. It reports Everything is built cleanly yes? (make sure to do a |
yes, clean build. I'm not good with that stuff, but maybe it links with ExamineFH from the .a library and there it picks up ExamineFH instead of OBSOLETEExamineFH from the local file? |
I don't think so (see below)
Where does it find that |
Right, i was mixing library files. WITH your fix it works now, working binary compiled, thank you very much |
OK, patch applied to git. Thank you for all the testing and feedback! |
I thank YOU, sir :-) |
gmake amigaos4
Building for ppc-amigaos4
gmake AOS4=1
gmake[1]: Entering directory /Development/Porting/wildmidi-wildmidi-0.4.5/amiga
gcc -o wildmidi getopt_long.o wm_tty.o amiga.o wildmidi.o -L. -lWildMidi -mcrt=newlib -
/SDK/local/newlib/lib/libWildMidi.a(file_io.o): In function _WM_BufferFileImpl':
file_io.c:(.text+0xac): undefined reference to ExamineFH'
[1]: *** [wildmidi] Error 1
[1]: Leaving directory /Development/Porting/wildmidi-wildmidi-0.4.5/amiga'
: *** [amigaos4] Error 2
libwildmidi.a is the one from the latest package
help?
The text was updated successfully, but these errors were encountered: