Thread View: gnu.g++.help
1 messages
1 total messages
Started by Horacio Recalde
Wed, 06 Dec 1995 21:59
Problems using g++ STL
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads