How to avoid cc warnings?
Posted in 1998
Hello again. Working under SCO UNIX Development System Release 5.0.0a 16Mar95. Sorry to bother you. This routines are included in the informix fglgo runtime. They were made 4 or 5 years ago in a Xenix development environment by a office mate that does not work here now. It seems he did not have any problem compiling. Now we are having problems (memory fault: core dumped) in our informix application because it has grown and we use a lot of configuration fields that use the binary trees. Finally I figured out that the problem was the reach of the number of trees limit. I have just changed the NARBOLES (number of trees) from 50 to 100, recompile and hope this to work. But it is not the case. Murphy is playing around here. My level of C knowledge is low, as you can suppose. I am sending you all the code and the warnings compiling with this script: cc $1.c -lc -o $1 "arboles.c", line 48: warning: argument is incompatible with prototype: arg #2 "arboles.c", line 87: warning: a cast does not yield an lvalue "arboles.c", line 87: warning: argument is incompatible with prototype: arg #2 "arboles.c", line 87: warning: argument is incompatible with prototype: arg #3 "arboles.c", line 107: warning: a cast does not yield an lvalue "arboles.c", line 107: warning: argument is incompatible with prototype: arg #2 "arboles.c", line 107: warning: argument is incompatible with prototype: arg #3 "arboles.c", line 115: warning: a cast does not yield an lvalue "arboles.c", line 115: warning: argument is incompatible with prototype: arg #2 "arboles.c", line 115: warning: argument is incompatible with prototype: arg #3 "arboles.c", line 136: warning: a cast does not yield an lvalue "arboles.c", line 136: warning: argument is incompatible with prototype: arg #2 "arboles.c", line 136: warning: argument is incompatible with prototype: arg #3 "arboles.c", line 174: warning: argument is incompatible with prototype: arg #2 undefined first referenced symbol in file main /usr/ccs/lib/crt1.o retint arboles.o popquote arboles.o cortatira arboles.o popint arboles.o retquote arboles.o ld fatal: Symbol referencing errors. No output written to arboles Please could anyone help me? Thanks in advance -- Evelio Mart'nez Office: +34 96 374-47-02 +34 96 374-47-03 programacionaf@sinix.net Home: evelio.ml@ctv.es