- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I could not get a simple program below to compile. The errror message says "Could not open source file "fstream.h". Here are my system info:
Intel C++ Compiler 9.1
MKL 9.0
Windows Server 2003 x64
Visual Studio 2005 Standard
Configuration Platform: x64
Please help with Environmental Variables and Include Paths. Thanks. #include "stdafx.h" #include "fstream.h" int _tmain(int argc, _TCHAR* argv[]) { if (argc " << endl; return(1); } ifstream fin(argv[1]); if (!fin) { cout << "Unable to open the file " << argv[1]; return(1); } fin.close(); return 0; }
MKL 9.0
Windows Server 2003 x64
Visual Studio 2005 Standard
Configuration Platform: x64
Please help with Environmental Variables and Include Paths. Thanks. #include "stdafx.h" #include "fstream.h" int _tmain(int argc, _TCHAR* argv[]) { if (argc " << endl; return(1); } ifstream fin(argv[1]); if (!fin) { cout << "Unable to open the file " << argv[1]; return(1); } fin.close(); return 0; }
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where is "fstream.h"?. I built the sample code IntelCompilerC++9.1samplesint_sin.cpp without any problem. However, the compilation failed after I added #include"fstream.h". My include directories pointed to both Intel C++ and VC++ include folder. Do I miss anything? Thanks.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page