From: Sean Proctor Newsgroups: comp.os.msdos.djgpp Subject: Re: problems with extern Message-ID: References: <8jhdcf$art$1 AT slb6 DOT atl DOT mindspring DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 Date: Fri, 30 Jun 2000 06:32:31 GMT NNTP-Posting-Host: 207.16.153.80 X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 962346751 207.16.153.80 (Fri, 30 Jun 2000 02:32:31 EDT) NNTP-Posting-Date: Fri, 30 Jun 2000 02:32:31 EDT Organization: ENTER.net (enter.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 30 Jun 2000 02:04:58 -0400, "Marp" wrote: >You can only declare local variables at the beginning of the scope of the >code. Since you have a function call before the FILE *fp declaration, it >gives you an error. C++ does not have this limitation, but C does. You also >mismatched the quote marks in the code you posted. You should do this >instead: