[TextEditor-mcc] Re: Error with OS3 compiler

  • From: Ilkka Lehtoranta <ilkleht@xxxxxxxxxxx>
  • To: texteditor_mcc@xxxxxxxxxxxxx
  • Date: Mon, 28 Apr 2008 00:39:58 +0300 (EEST)

On Sun, 27 Apr 2008, Mathias PARNAUDEAU wrote:

> Le 24/04/2008, sh1nkur0@xxxxxxxxx a écrit:
> 
> > Hi,
> 
> Hi
> 
> > ok I've compiled texteditor-mcc for os4 and mos (yup!), but for OS3 I
> > have there errors:
> 
> > Compiling library.c
> > In file included from library.c:81:
> > ../include/mccinit.c:183: error: conflicting types for 'UtilityBase'
> >
> /usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/sys-include/proto/utility.h:12:
> > error: previous declaration of 'UtilityBase' was here
> ../include/mccinit.c:183:
> > error: conflicting types for 'UtilityBase'
> /usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/sys-include/proto/utility.h:12:
> > error: previous declaration of 'UtilityBase' was here make: ***
> > [.obj_os3/library.o] Error 1
> 
> The type of UtilityBase depends on the NDK version. It may be "struct
> UtilityBase *" where "struct Library *" is commonly expected.

In fact NDK does not define it because NDK (NDK = "dev kit" for 68k) does 
not have protos... :) Protos were supplied by compiler vendors.

I would just modify protos and change struct UtilityBase * to struct 
Library *.

To conform with LGPL source code should be modified of course but it is 
just minor issue IMO.


  Ilkka

-- 
_____________________________________________________________________________
TextEditor ML   - //www.freelists.org/list/texteditor_mcc
Listserver help - mailto:texteditor_mcc-request@xxxxxxxxxxxxx?Subject=HELP
Bugtracker......: http://sourceforge.net/tracker/?atid=731469&group_id=135025


Other related posts: