cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/01/16:21:10

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199707012020.AA258178449@typhoon.rose.hp.com>
Subject: Re: DJGPP wierd compilation error
To: dan AT wayfarer DOT demon DOT co DOT uk
Date: Tue, 01 Jul 1997 13:20:49 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <33B775B9.D567D103@wayfarer.demon.co.uk>; from "Dan" at Jun 30, 97 10:00 am

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019