|
|
I'm trying to compile the latest source under AIX 4.1.
The compiler is upset with the functions prototyped in povproto.h and
implemented in userio.c that use variable argument lists. No other
files seem to run into the problem. It thinks that the functions are
declared differently.
An example of the error is
make ./userio.o
cc -O2 -ansi -c -DCOMPILER_VER=\".`uname`.cc\" -I. -I..
-I../libpng -I../zlib -I/usr/X11/include ../userio.c -o ./userio.o
"../userio.c", line 59.11: 1506-343 (S) Redeclaration of Banner differs
from previous declaration on line 64 of "../povproto.h".
"../userio.c", line 59.11: 1506-378 (I) Prototype for function Banner
cannot contain "..." when mixed with a nonprototype declaration.
Has anybody made it around this?
-steve
Post a reply to this message
|
|
|
|
<3613ECA1.FC214465@gte.net> , Steve Suehs <ske### [at] gtenet> wrote:
>make ./userio.o
> cc -O2 -ansi -c -DCOMPILER_VER=\".`uname`.cc\" -I. -I..
>-I../libpng -I../zlib -I/usr/X11/include ../userio.c -o ./userio.o
>"../userio.c", line 59.11: 1506-343 (S) Redeclaration of Banner differs
>from previous declaration on line 64 of "../povproto.h".
>"../userio.c", line 59.11: 1506-378 (I) Prototype for function Banner
>cannot contain "..." when mixed with a nonprototype declaration.
>
>
>Has anybody made it around this?
Have you tried to deactivate the -ansi option, POV-Ray is not exactly ANSI C
compatible. And maybe you have CDECL declare somewhere? Note that povproto.h is *not*
does not include frome.h or config.h so if you defined CDECL the header might not have
it and the prototypes do not match.
If you your compiler supports it, try to get the preprocessor output only (some
compilers can dump it) and llok if the function declaration and the function itself
differ.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
Post a reply to this message
|
|