From: zargon AT hotmail DOT vom (Zargon) Newsgroups: comp.os.msdos.djgpp Subject: Re: compile despite warnings Organization: Zargon and Zed Take Over The Universe Message-ID: <394055c1.421385237@news.globalserve.net> References: <3940573D DOT E2F4270F AT ne DOT infi DOT net> X-Newsreader: Forte Free Agent 1.11/32.235 Lines: 25 Date: Fri, 09 Jun 2000 02:27:28 GMT NNTP-Posting-Host: 207.176.153.31 X-Complaints-To: news AT primus DOT ca X-Trace: news2.tor.primus.ca 960518192 207.176.153.31 (Thu, 08 Jun 2000 22:36:32 EDT) NNTP-Posting-Date: Thu, 08 Jun 2000 22:36:32 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 08 Jun 2000 22:32:29 -0400, Martell ate too many hallucinogenic mushrooms and wrote: >when i use gcc to compile my source, if it encounters a warning, it wont > >compile, how would i invoke gcc, and with what options, to force it to >finish >compile despite warnings? > >as of right now i do this: >gcc mysource.cc -o prog.exe It should be outputting an executable with that command line, unless you also have *errors*. If you use the -Werror switch on the command line then it will fail when there are mere warnings. You'll get this message however: Warnings being treated as errors. If this is showing up, then the -Werror option has been turned on somehow. -- Any sufficiently advanced magic is indistinguishable from an Allegro-using C++ program compiled with gcc.