Mail Archives: djgpp/1996/10/13/02:50:28
Dr Eclipz wrote:
> the problem i get is when i try to compile a program i'm working on. i
> changed the type of several functions from 'int' to 'void' and some
> compiler warnings surfaced. for a while, djgpp compiled the program and
> after the warnings said 'no errors'. now it's gotten to the point where it
> just doesn't finish compiling at all. is there some way to
> make the compiler stop keeping track of me changing types or to make it
> shut up with those errors? thanks for any help you can provide! (read on
> for my eviron.lst and other information)
The problem is exactly what the compiler is telling you: By declaring
things void you are changing the type that it is expecting them to be.
If you're using prototypes, be sure to change them to reflect the new
definitions of the functions. If you're not using prototypes, then start
using them.
If you're adamant about not using prototypes for some reason, then declare
the functions in question _before_ they are called elsewhere. That way the
compiler will implicitly know what types they are and will not complain.
--
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
- Raw text -