From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: compiler troubles Date: Sun, 06 Oct 1996 10:15:55 -0700 Organization: Alcyone Systems Lines: 27 Message-ID: <3257E94B.72AD3B01@alcyone.com> References: <3 DOT 0b26 DOT 32 DOT 19961004162450 DOT 00685b9c AT cis DOT cisnet DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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