Closed rosneru closed 6 months ago
Update your amiga-gcc, and at least rebuild libnix:
make update
make clean-libnix
make libnix
You have to define NO_INLINE_STDARG
.
m68k-amigaos-gcc Layout1.c -o Layout1 -noixemul -Os -DNO_INLINE_STDARG
Thank you, this works!
I have one last question regarding Reaction:
When compiling another example from the 3.2 NDK, Cooser1.c
(attached) it still fails. Because there is a function call of FreeChooserLabels()
which is declared in clib/reaction_lib_protos.h
and uses code from linker library reaction.lib
.
The thing is
opt/amiga/m68k-amigaos/vbcc/lib
it existsIn my SAS-C installation at home it also seems to exist because I remember compiling chooser1.c
successfully with the command given in the file
sc LINK Chooser1.c LIB lib:reaction.lib NOSTACKCHECK
Is there a way to use this lib from gcc?
try copying that lib into opt/amiga/lib
and add -lreaction
...
Unfortunately it didn't work:
m68k-amigaos/bin/ld: cannot find -lreaction: No such file or directory
I copied it to /opt/amiga/lib
and also to /opt/amiga/m68k-amigaos/lib
. I also noticed that apart from the copied reaction.lib
all other files in those directories have a .a
extension.
rename it to libreaction.a
This works:-) Thank you!
The attached file
Layout1.c
is one of the examples from the NDK3.2 and like most of these examples it shows how to create programs with Reaction.It makes heavy use of the macros defined in
reaction_macros.h
which I also attached here. ButLayout1.c
fails to compile stating:With SAS-C it works with this commandline:
What do I have to do to make it work with gcc 6.5?
Layout1.c.md reaction_macros.h.md