Hi, there,
I got a question about STL that bothers me a lot.
I cannot even do this simple one,
#include <iostream>
void main()
{
cout << "Hello World" << endl ;
}
It gave me this:
Compiling...
1.cpp
E:\temp\1.cpp(5) : error C2065: 'cout' : undeclared identifier
E:\temp\1.cpp(5) : error C2297: '<<' : illegal, right operand has type 'char [12]'
E:\temp\1.cpp(5) : error C2065: 'endl' : undeclared identifier
Error executing cl.exe.
1.obj - 3 error(s), 0 warning(s)
I know it's problem with STL, but don't know what on earth is wrong. I have the library files for STL, such as LIBCP.LIB, LIBCPMT.LIB, MSVCPRT.LIB, LIBCPD.LIB, etc, in the directory of 'C:\Program Files\Microsoft Visual Studio\VC98\LIB' or 'C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB'.
Do I need to set anything up in VC++. Btw, I'm using MSVC++ 6.0.
Thanks a lot.
Joe