why doesn't STL work with gcc 3.2.2?

Smith, Jacob N. jnsmith@utmb.edu
Wed Jun 25 13:49:00 GMT 2003


> ----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;
}



More information about the Gcc-help mailing list