#ZC problems II
2 messages in this thread
Well, I dug out my copy of ZC and tried compiling a relatively simple
program and ran into problems again. Here's the situation, the 2nd line
below (part of a function) generates an error:
struct ViewPort *vp;
vp = ViewPortAddress(window);
where window is a pointer to a Window struct. Every time I run CC (or ZC)
the "(window)" part of the statement generates an "integral not allowed"
error. Now I also pass this same pointer to other functions and don't have
problems(?!). In a few other places I pass a variable to a function and
generate the same error. Incidentally, I didn't write the program, it's a
file from library #9 that was originally compiled with Manx (and compiles
without error with PDC). I've tried about 25 different ways of expressing
the statement, but I can't see what's wrong with it. Now if I knew what an
"integral not allowed" error means I might be able to try something else.
Anyone have any suggestions???
I seem to remember something about this error. Has ViewPortAddress been
declared earlier as struct ViewPort *ViewPortAddress();?
BobS