Mail Archives: djgpp/1997/07/01/16:21:10
> Basically, on compilation, the syntax checker does not notice mis-typed
> library function calls, for example 'helloworld()' instead of
> 'hello_world()'. I can then compile and link the program, which then
> obviously crashes on execution, due to a call to the non-existent
> 'helloworld()' function.
>
> Anyone seen this and/or managed to get around this?
Sure, just use -Wall. It will complain that you have no prototype for
the misspelled function. I suspect you are using the RSX linker, because
you should get undefined symbols from the DJ linker.
Andrew
- Raw text -