1. how to include C++ header files when using Forte 6 C++ compiler?
Hi, everyone,
We just installed Forte 6 and are testing its C++ compiler. We got following errors while trying to compile a small
code:
#include <iostream>
#include <string>
main()
{
string C;
cout << "hello\n";
cin >> C;
cout << "you typed: " << C << endl;
"testC.C", line 7: Error: string is not defined.
"testC.C", line 8: Error: cout is not defined.
"testC.C", line 9: Error: cin is not defined.
"testC.C", line 10: Error: cout is not defined.
"testC.C", line 10: Error: endl is not defined.
5 Error(s) detected.
-----------------------------------------------
If we use iostream.h, errors for cout,cin, and endl are gone. But undefined "string" error is always there no matter
whether <string> or <string.h> is used.
Any suggestions about how to include the header files?
Thanks for any help!
Wu
2. Linux newbie in deep doo-doo
3. location of iostream header file
4. Suse 7.1 PPC update disk image download ?
5. g++ cannot find the header file (iostream.h)
6. rpc.mountd cannot connect
7. C++ iostreams + libthread problem
8. Need diff command....help.
9. C++ iostream popen equivalent?
10. GCC 2.6.3 and problems compiling c++ code (iostream.h).
11. GNU C++ - iostream.h problem
12. Networked (TCP/IP) C++ iostreams?
13. compiling c++ programs/iostream.h