| delorie.com/archives/browse.cgi | search |
| From: | mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: why is this giveing me a parse error? |
| Date: | 4 Jul 1997 22:31:21 GMT |
| Organization: | Oxford University, England |
| Lines: | 13 |
| Message-ID: | <5pjtjp$e36@news.ox.ac.uk> |
| References: | <01bc88b8$05a9b7e0$3564a8c0 AT Kelly DOT ns1 DOT uswest DOT net> |
| NNTP-Posting-Host: | sable.ox.ac.uk |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
levity AT minn DOT net wrote: : every time I try to compile this program with djgpp it gives me a parse : error. Note that the code I am including is scaled down in an atmpt to : isolate the problem. In C you are not allowed to define variables within a block; your definition of `bmh' must come before any code in the block, i.e. before the fopen call. C++ does allow you to define variables almost anywhere though. -- George Foot <mert0407 AT sable DOT ox DOT ac DOT uk> Merton College, Oxford
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |