This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: why doesn't STL work with gcc 3.2.2?
- From: "Smith, Jacob N." <jnsmith at utmb dot edu>
- To: 'Brent Phillips' <mynekos2000 at yahoo dot com>, gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Jun 2003 07:55:23 -0500
- Subject: RE: why doesn't STL work with gcc 3.2.2?
> ----BEGIN COMPILER ERROR OUTPUT---
> # gcc test.cpp -o test
Compile with g++ or with the proper C++ flags. The header <vector> requires
this. I slightly better way to form your C++ program would be:
#include <iostream>
#include <cstdlib>
#include <vector>
int main (int argc, char *argv[])
{
// declaring a vector of zero length
// std::vector<int> happy_vector;
// output to the console
std::cout << "Hello World++" << std::endl;
return 0;
}