Dev C%2b%2b Iostream No Such File Or Directory

Dev C%2b%2b Iostream No Such File Or Directory Average ratng: 4,1/5 7173 votes
  1. Problem: I received this error: fatal error: iostream.h: No such file or directory. Because of standards section 17.4.1.2 (“Headers”) in ISO/IEC “Information technology -Programming languages - C”, the open source libstdc library does not have an iostream.h header file.
  2. Is normally stored in the C: Program Files Microsoft Visual Studio 8 VC include folder. First check if it is still there. Then choose Tools + Options, Projects and Solutions, VC Directories, choose 'Include files' in the 'Show Directories for' combobox and double-check that $ (VCInstallDir)include is on top of the list.
Home » Language IDEs » C / C++ IDE (CDT) »

Getcwd returns the current working directory. That's the directory to which you can expect relative paths to resolve. Thus, it certainly explains why your relative path isn't finding the file if the current working directory is different. An easy solution would be using chdir to force the current directory you. Iostream.h is very old non-standard header which is nomore included in newer VS versions. The corresponding standard header is iostream (with no '.h').

Does not find include<iostream.h>
Show:Today's Messages::Show Polls::Message Navigator
Does not find include<iostream.h>[message #754161]Tue, 01 November 2011 05:57
legutierrezg
Messages: 3
Registered: November 2011
I have been using Eclipse with C for AVR microcontrollers and didn´t have problems with the programming.
But now, I want to know C++ and used MinGW as pluggin for Eclipse on Windows Vista.
I configured such as indicate a tutorial.
I did a basic program on C++, compile the program and appear the message:
**** Build of configuration Release for project CPU_CH_9_Ex1 ****
**** Internal Builder is used for build ****
g++ -IC:UsersLuchoworkspaceCPU_CH_9_Ex1.settings -O3 -Wall -c -fmessage-length=0 -omain.o ..main.cpp
..main.cpp:7:22: fatal error: iostream.h: No such file or directory
compilation terminated.
Build error occurred, build is stopped
Time consumed: 218 ms.
In the program this is the header:
/*
* main.cpp
*
* Created on: 30/10/2011
* Author: Lucho
*/
#include <iostream.h>
#include <stdio.h>
int Buffer[11];
void Mayor (void);
,
,
But appear that error.
The file iostream.h appear on the root of the Project as:
C:MinGW/lib/gcc/mingw32/4.5.2/include/c++
but does not recognize.
How can i solve that problem?
Thanks in advance
Luis
Re: Does not find include<iostream.h>[message #754269 is a reply to message #754161]Tue, 01 November 2011 17:11
legutierrezg
Messages: 3
Registered: November 2011
I had one error on my consult.
where i said:
Quote:The file iostream.h appear on the root of the Project as:
C:MinGW/lib/gcc/mingw32/4.5.2/include/c++
but does not recognize.Quote:
Really appear the file iostream, but no extension .h
Only there is the file 'iostream'
How can i solve my problem?
Re: Does not find include<iostream.h>[message #754310 is a reply to message #754161]Wed, 02 November 2011 02:40
legutierrezg
Messages: 3
Registered: November 2011
Sorry, the problem wasn´t configuration of Eclipse. The problem was in C++, bad use cin, cout. I´m a begginer in C++.
Re: Does not find include<iostream.h>[message #754535 is a reply to message #754310]Thu, 03 November 2011 03:55
igoat
Messages: 4
Registered: October 2011
In the project setting, there is somewhere you can set the path for the include files. I suggest that you check whether the path 'C:MinGW/lib/gcc/mingw32/4.5.2/include/c++' is listed there.
Previous Topic:CDT - Run or debug - the selection cannot be launched
Next Topic:.project and .cproject location
Goto Forum:
[ Syndicate this forum (XML) ] [ ]

Dev C 2b 2b Iostream No Such File Or Directory File

Powered by FUDForum. Page generated in 0.01826 seconds