Newsgroups: comp.sys.amiga.programmer
Path: utzoo!utgpu!cunews!micor!jtrimble
From: jtrimble@micor.ocunix.on.ca (Jason Trimble)
Subject: Help with windows in C
Organization: M.B. Cormier INC., Ottawa (Ont)
Distribution: na
Date: Sun, 9 Jun 1991 05:06:14 GMT
Message-ID: <1991Jun9.050614.18577@micor.ocunix.on.ca>


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)

