delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/02/17:46:43

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: extern problem
Date: Fri, 02 Jan 1998 14:26:24 -0800
Organization: Alcyone Systems
Lines: 22
Message-ID: <34AD6990.6A0523B1@alcyone.com>
References: <34AD61B8 DOT 8C4CF871 AT IHateSpam DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ryan McGee wrote:

> I'm having a problem with the extern keyword.  I'm doing a multi-file
> project in RHIDE, and I'm declaring something I want all the functions
> to be able to acess above my main and then in the other files
> declairing
> it the same way with the extern keyword before it.  The problem is
> that
> the variables are all equal to 0 when I use extern, but they have
> values
> in them in main.

Without more details, I can't give much help.  Static externals and
externals are all initialized to zero when defined.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
                       "Life may be / the product of imperfections."
                                   / (Marclo Gleiser)

- Raw text -


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