Welcome, Guest. Please login or register.

Author Topic: Probably a very simple development question...  (Read 4371 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show all replies
    • http://cuaz.sourceforge.net
Re: Probably a very simple development question...
« on: October 28, 2008, 08:37:20 AM »
C includes must be adapted to work on all compilers or at least the compiler you are using.

You'll need to use fd2pragma or a similar tool.

Perhaps you'll find aweb includes useful (AFAIK they are already adapted for GCC and OS4/OS3/MOS): http://aweb.sunsite.dk/



if your includes are already adapted that errors may have appeared because you haven't included the function prototypes.

You may have to add a:
#include
or even a
#include

you should never have to add:
#include
and you should never have to add
#include
as proto/cybergraphx.h should already choose that files. if you use inline or clib headers instead of proto ones your code won't be directly portable to other compilers (gcc uses "inline/" directory but other compilers don't.

good luck!
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show all replies
    • http://cuaz.sourceforge.net
Re: Probably a very simple development question...
« Reply #1 on: October 28, 2008, 04:22:47 PM »
As Kronos explained it correctly I'll just add that GCC uses the inline/ directory instead of "pragma"/"Pragmas" and that OS4 uses different directories like "inline4/".

I created this small script to create 68k headers for gcc with fd2pragma: http://cuaz.sourceforge.net/cuaz/files/AAT_Create_includes

and this one for MorphOS:
http://cuaz.sourceforge.net/cuaz/files/AAT_Create_includes_MOS
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)