Miłosz Staszewski wrote:
> Hello all,
>
> I've got another problem with compilation under Amithlon cross-compiler.
>
> Now I want to compile YAM 2.3. And as before I want to compile m68k-amigaos
> version first. When I'll be sure that it works then I will try to get i686
> version.
>
> I've installed includes and FDs for MUI from mui38dev into
> /opt/gg/os-include/amigaos
> and /opt/gg/os-lib/fd/amigaos respectively.
>
> Then I ran the following commands:
>
> /opt/gg/bin/gg-fix-includes --sfd
> /opt/gg/bin/gg-fix-includes --include
> /opt/gg/bin/gg-fix-includes --lib
>
> (although the last one wasn't necessary I think).
>
> And this is the error I get:
[...]
> For me it looks like a problem with inlines and protos. But how to make this
> working if they should be automagically generated by
> /opt/gg/bin/gg-fix-includes ?
>
> Or maybe I'm wrong and the problem is something else?
> I enclose the Makefile and the file producing these errors.
> Any help will be appreciated.
MUI applications have trouble with inlines and recent gcc's. Define the
preprocessor macro NO_INLINE_STDARG before including <proto/muimaster.h>:
#define NO_INLINE_STDARG
#include <proto/muimaster.h>
#undef NO_INLINE_STDARG
or simply add -DNO_INLINE_STDARG to CPPFLAGS in your Makefile.
--
---- Martin Blom --------------------------- martin@... ----
Eccl 1:18 http://martin.blom.org/