[comp.sys.amiga.programmer] Help with windows in C

jtrimble@micor.ocunix.on.ca (Jason Trimble) (06/09/91)

I am just beginning to delve into windows and screens using SAS/C 5.10 on my 
Amiga 2000 (with GVP series II 22Mhz '030 accelerator board).  I've been haveing some problems with a few lines of code.  The code follows:

extern LONG OpenLibrary();
extern VOID cleanExit();
extern UBYTE handleIDCMP();

struct IntuitionBase *IntuitionBase = NULL;

---End of problem section--

Now when I try to compile this (using -b1 -cfist -L -v -ma) it give me an 
error 170: to many initializers or something to that effect on the first line
and on the last line (struct ...). What am I doing wrong?  What is wrong with
the above prototypes?  I know I can add the variable types for the parameters
in the prototypes, but I did that and that generates the same error.
	Also: What is the significance of the upper case LONG, and VOID?
	      What is the type UBYTE?  

The program I'm trying to compile is the first one from the book:
Amiga Rom Kernel Reference Manual: Libraries & Devices


I also have Amiga C for Beginners, but it lists nothing about the above 
problems (especially about UBYTE).

	Any help via EMAIL would be muchly apprieciated.


		Jason Trimble (jtrimble@micor.OCunix.ON.CA)

ken@cbmvax.commodore.com (Ken Farinsky - CATS) (06/10/91)

In article <1991Jun9.050614.18577@micor.ocunix.on.ca> jtrimble@micor.ocunix.on.ca (Jason Trimble) writes:
>
>extern LONG OpenLibrary();
>extern VOID cleanExit();
>extern UBYTE handleIDCMP();
>
>struct IntuitionBase *IntuitionBase = NULL;
>
>Now when I try to compile this (using -b1 -cfist -L -v -ma) it give me an 
>error 170: to many initializers...
>
>		Jason Trimble (jtrimble@micor.OCunix.ON.CA)

Did you include <exec/types.h>?
-- 
Ken Farinsky - CATS - Commodore Business Machines