www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/20/22:45:27

From: oliver AT jesus DOT hv (Oliver Richman)
Newsgroups: comp.os.msdos.djgpp,comp.lang.c++
Subject: Problems defining external symbols in C++ !?
Date: Fri, 21 Aug 1998 02:16:26 GMT
Organization: Pathway Communications
Lines: 19
Message-ID: <35dcd766.101916239@news.pathcom.com>
NNTP-Posting-Host: ts29l14.pathcom.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am converting a large C program to C++ using DJGPP, and all is going
well, but for some reason when I do this:

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.

If this is a problem with my not knowing C++ or DJGPP syntax, at LEAST
tell me to RTFM, but point out which page it's on. THANKS. :)

-opr
--                                   \ Two FREE games on my homepage, and more!
orichman at hotmail.com                \ 1. NETWHACK (C++ port of NetHack)
www.pathcom.com/~simex/opr/index.html   \ 2. DOS ROGUE 1.0 (1.1 coming soon!)

- Raw text -


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