From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: STRING problems! Date: Tue, 28 Apr 1998 19:44:40 -0400 Organization: Cornell University (http://www.cornell.edu/) Lines: 34 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <354669E8.A8DFC1EF@cornell.edu> References: <35462A31 DOT 4E83C790 AT acpub DOT duke DOT edu> <3546360D DOT 7114 AT cs DOT com> <35464CC1 DOT 4E00589F AT acpub DOT duke DOT edu> NNTP-Posting-Host: cu-dialup-2117.cit.cornell.edu 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 Robert Vila wrote: > > I think I may have identified the problem. I don't think any C++ > programs compile. > any other ideas? treading readme.1st knowing the difference between 'compiling' and 'linking' would have helped. > c:/djgpp/tmp/ccaaaaaa1.o(.text+0x24):test.cpp: undefined reference to > `String::String(char const *)' > c:/djgpp/tmp/ccaaaaaa1.o(.text+0x3c):test.cpp: undefined reference to > `operator<<(ostream &, String const &)' > c:/djgpp/tmp/ccaaaaaa1.o(.text+0x57):test.cpp: undefined reference to > `String::~String(void)' > c:/djgpp/tmp/ccaaaaaa1.o(.text+0x7b):test.cpp: undefined reference to > `String::~String(void)' short answer: use gxx to compile and link c++ programs in one go. for the long answer, see readme.1st. -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/