This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]