Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Include directories - Please help me get started

jimwon
Beginner
264 Views
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; }
0 Kudos
1 Reply
jimwon
Beginner
264 Views
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.
0 Kudos
Reply