qrwamaca@... (Fighter For Future) wrote on 26.06.2003:
Hello!
> all fixed includes are on my homepage
>
> http://www.fighter.w.pl/FFF_HP/
I just tried it, had a hard time finding it,
your page is not English...
You should mention that the supplied bin-utils are
ELF binaries and made to work with Amithlon.
I just tried it with the 68k bin utils from
the original compiler-archive.
***
#include <proto/exec.h>
#include <proto/dos.h>
int hello(void)
{
struct DosLibrary *DOSBase=(struct DosLibrary
*)OpenLibrary("dos.library",36);
if(DOSBase)
{
PutStr("Hello\n");
CloseLibrary((struct Library *)DOSBase);
}
return 0;
}
***
i686be-amithlon-gcc -noixemul -o hello hello.c
***
8.BSE:GCC_x86> i686be-amithlon-gcc -noixemul -o hello hello.c
/gg/i686be-amithlon/lib/libnix/ncrt0.o: In function `c_start':
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0xdb): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x10a): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x12a): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x179): undefined reference to
`main'
/gg/i686be-amithlon/lib/libnix/ncrt0.o: In function `c_exit':
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x1d2): undefined reference to
`_CallLib68k'
/gg/i686be-amithlon/lib/libnix/ncrt0.o(.text+0x1f9): undefined reference to
`_CallLib68k'
/t/ccMnkRPi.o: In function `hello':
/t/ccMnkRPi.o(.text+0xa4): undefined reference to `_CallLib68k'
/t/ccMnkRPi.o(.text+0x17d): undefined reference to `_CallLib68k'
/t/ccMnkRPi.o(.text+0x240): undefined reference to `_CallLib68k'
/gg/i686be-amithlon/lib/libnix/libnixmain.a(_ nocommandline.o)(.text+0x65): more
undefined references to `_Call
Lib68k' follow
collect2: ld returned 1 exit status
***
Is there any chance to tell me what is missing?
There maybe is not much use for it anymore but for the fun of
it I maybe could provide an x86 binary of DiskMaster2
compiled on my A1200.
As well as I plan to provide an OS4 native version.
And I already converted the DM2 sources so that it compiles
fine with both SAS-C and the 68k version of GCC I have.
I'm only a little bit lost when it comes to internals of GCC...
Regards - Rudolph