delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/28/23:18:20

From: "A. Sinan Unur" <Sinan DOT Unur AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Vila wrote:
> 
> I think I may have identified the problem. I don't think any C++ 
> programs compile.

<snip>

> any other ideas?

treading readme.1st knowing the difference between 'compiling' and
'linking' would have helped.

<snip>

> 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/

- Raw text -


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