X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.225.57 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: Turbo Vision compile problems Organization: Systematic Software Message-ID: References: <47d30654$0$21931$9b4e6d93 AT newsspool2 DOT arcor-online DOT net> <47d458b1$0$25507$9b4e6d93 AT newsspool1 DOT arcor-online DOT net> <80a468cd-0b97-4461-b63c-f0c81545cc41 AT i7g2000prf DOT googlegroups DOT com> <14hpt3h213d3r2bj19a5keujfjdsplb9s0 AT 4ax DOT com> <7dc33fe4-e88a-4f3d-b91e-1c6a03b3783b AT i29g2000prf DOT googlegroups DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 36 Date: Wed, 26 Mar 2008 01:04:55 GMT NNTP-Posting-Host: 64.59.135.176 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7urf1no 1206493495 64.59.135.176 (Tue, 25 Mar 2008 19:04:55 MDT) NNTP-Posting-Date: Tue, 25 Mar 2008 19:04:55 MDT X-Original-Bytes: 2905 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 25 Mar 2008 15:02:08 -0700 (PDT) in comp.os.msdos.djgpp, jmichae3 AT yahoo DOT com wrote: >On Mar 15, 11:04 pm, Brian Inglis >wrote: >> On Sat, 15 Mar 2008 14:19:17 -0700 (PDT) in comp.os.msdos.djgpp, >> >> jmich DOT DOT DOT AT yahoo DOT com wrote: >> >do you think tvision could be brought up to 4.2-3 standards?  usually >> >what the problem is during the compile is a string literal bsing used >> >in a char * and apparently GCC 4.2-3 chokes on it.  I know it's not >> >proper, but wouldn't it be fixed if those were changed to >> >const_cast("blahblah") instead of "blahblah"? >> >> Try removing compile flags -Werror, -pedantic, and -ansi if used, and >> add -std=c89 to see if that eliminates compile failures. >> The first option mentioned changes all warnings into errors, so all >> warning options used e.g. -W... increase the likelihood of compile >> failures. >> If the code is not GCC clean, you will get some or evan a lot of >> warnings, but unless the code is really bad, as in causing undefined >> behaviour, you should not get compilation failures. >> > >I specified no compile flags. Thought you were using a makefile, which might use $(CFLAGS), and will do so if you are using implicit .c.o rules. Try using -std=c89 to allow K&R parsing. Do not use -traditional, as that is now just a CPP switch. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply