From: Endlisnis 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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