delorie.com/archives/browse.cgi | search |
From: | Robert and Janice Washington <rwashington AT worldnet DOT att DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Help with unresolved template reference |
Date: | Wed, 18 Jun 1997 13:37:12 -0700 |
Organization: | AT&T WorldNet Services |
Lines: | 32 |
Message-ID: | <33A846F8.5923@worldnet.att.net> |
Reply-To: | rwashington AT worldnet DOT att DOT net |
NNTP-Posting-Host: | 207.116.64.118 |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hello. I have a program that makes use of the vector class from the STL. I have a vector of String objects. When I attempt to build my program using the following command : gcc mail.cpp -o mail -lstdcx I get the following error message : mail.cc (.text+0x4a56): undefined reference to 'vector<Message>::operator=(vector<Message> const &) I looked in the vector header file and saw that the '=' operator was overloaded for vector class - using the following prototype: vector<T>& operator=(const vector<T>& x); My questions : 1) Is my program looking for a different signature for = operator (or am I misinterpreting the error message) 2) Assuming the the = operator of vector class is defined correctly, has anyone encountered this a problem and if so what was your workaround for it. 3) If there is no workaround how can I find out where the reference is occuring? 4) Am I barking up the wrong tree? Its happended before :-) Thanks for any help/insight you can provide. -- rlw
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |