Thread: Compile Error

Compile Error

From
"Joseph Showalter"
Date:
I get the following compile error on Redhat 7.1...

input.c: In function `initializeInput':
input.c:157: warning: passing arg 1 of `on_exit' from incompatible
pointer type
input.c:157: too few arguments to function `on_exit'
make[3]: *** [input.o] Error 1

respectfully,
Joseph

Re: Compile Error

From
Peter Eisentraut
Date:
Joseph Showalter writes:

> I get the following compile error on Redhat 7.1...
>
> input.c: In function `initializeInput':
> input.c:157: warning: passing arg 1 of `on_exit' from incompatible
> pointer type
> input.c:157: too few arguments to function `on_exit'
> make[3]: *** [input.o] Error 1

A more interesting question would be why it's using on_exit() at all and
not atexit().  Can you check the config.log file for compiler messages?

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter