delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/30/02:45:38

From: Sean Proctor <sproctor AT ccs DOT neu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problems with extern
Message-ID: <iufolsgde5esm7hvop9voh9cpm7k1eqfp5@4ax.com>
References: <n1colsooqlrmkltk8f3b2hgnbinmj67jvk AT 4ax DOT com> <8jhdcf$art$1 AT slb6 DOT atl DOT mindspring DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 18
Date: Fri, 30 Jun 2000 06:32:31 GMT
NNTP-Posting-Host: 207.16.153.80
X-Complaints-To: Abuse Role <abuse AT enter DOT net>, We Care <abuse AT newsread DOT com>
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" <marp AT 0 DOT 0 DOT 0 DOT 0> wrote:

<snip>

>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:

<snip

yup, thanks... I'm idiot, like was my other guess...
the fact there was an assignment after the declaration make me forget
it was indeed a declaration.  I found that and I was going to correct
myself... Yeah, I'm dumb.

Sean

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019