cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/21/16:45:32

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp,comp.lang.c++
Subject: Re: Problems defining external symbols in C++ !?
Date: Fri, 21 Aug 1998 16:43:49 -0300
Organization: NBTel Internet
Lines: 22
Message-ID: <35DDCDF2.9F445A4A@unb.ca>
References: <35dcd766 DOT 101916239 AT news DOT pathcom DOT com>
NNTP-Posting-Host: fctnts11c37.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Oliver Richman wrote:

> from moo.cc:
> const struct moostruct moovariable[] = { ... }
>
> from moo2.cc:
> extern const struct moostruct moovariable[];
>
> I get an "undefined reference to moovariable" in moo2.cc.

    I tried compiling that, and it didn't work for me either.  You can't have
extern const data.  I don't know why, but if you remove the 'const' it will work.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca




- Raw text -


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