Article View: gnu.g++.help
Article #853Problems using g++ STL
From: Horacio Recalde
Date: Wed, 06 Dec 1995 21:59
Date: Wed, 06 Dec 1995 21:59
32 lines
1133 bytes
1133 bytes
I'm having problem when I compile the following code
#include <iostream.h>
#include <string>
#include <algorithm>
#include <vector>
int main()
{
string s = "horacio recalde";
vector<string> v;
v.insert(v.end(), s);
cout << "this is the string " << s << endl;
cout << "this is the vector " << v.begin() << endl;
const string data = "recalde";
const string* p = find(v.begin(), v.end(), data);
}
I'm using the following command line> g++ -g junk.C
and getting problems with `class basic_string<char,string_....> function.
I could not cut and paste the right line 'cause it is too long.
Please give me some pointer regarding this problem.
I'm using gcc2.7.0 and libg++2.7.0
Technical Details
Message-ID:
<199512062158.AA25957@egate.citicorp.com>Path:
arc1-ca.pugleaf.net!citicorp.COM!horacio.recaldeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!citicorp.COM!horacio.recalde From: horacio.recalde@citicorp.COM (Horacio Recalde) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Problems using g++ STL Date: 6 Dec 1995 16:59:37 -0500 Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu Sender: daemon@cis.ohio-state.edu Distribution: world Message-ID: <199512062158.AA25957@egate.citicorp.com>