delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/25/11:51:04

From: "Y.K. Goh" <s6606555 AT np DOT edu DOT sg>
Sender: "Y.K. Goh" <s6606555 AT npnsnews>
Subject: Linking problem (undefined reference)
Newsgroups: comp.os.msdos.djgpp
X-User-Info: 153.20.60.34 s6606555 npnsnews
NNTP-Posting-Host: 153.20.15.92
Message-ID: <36fa0697.0@nsuxnews>
Date: 25 Mar 1999 17:49:11 +0800
X-Trace: 25 Mar 1999 17:49:11 +0800, 153.20.15.92
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I've created a new class called CSentence that has a list of
string.

list <string> m_Words;

There is nothing in the class except a default constructor which
is empty, a destructor (also empty) and a test case.

While linking, LD displays the following error message:
d:/djgpp/tmp\ccdaaaaa(.text+0xe1c6):Sentence.cc: undefined reference to `list<basic_string<char, string_char_traits<char> > >::operator=(list<basic_string<char,
 string_char_traits<char> > > const &)'

What's the possible problem? How can I track down the problem?
------------------------------
Yong-Kwang Goh
Ngee Ann Polytechnic
The Centre for Computer Studies

Email: s6606555 AT np DOT edu DOT sg
------------------------------

- Raw text -


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