News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

help wih fstream // iostream

Started by alkazors, December 05, 2007, 05:44:58 AM

Previous topic - Next topic

alkazors

Hi, all im beginning in c and i want to know why do i get an error when i use
#include <iostream>
#include <fstream>

it tells me no such file or directory

thx
please help me ! :D

jfouche

Warning, <iostream> is for C++, not for C.

Did C::B found your compiler ? See Settings/Compiler and debugger :
- 1 : Selected compiler
- 2 : the 'search directories' tab.

HTH
--
Jérémie

alkazors


alkazors

C:\Program Files\CodeBlocks\include
that what i tells me but i did some programe before with code::blocks and it was working its only
with those #include <iostream> and #include <fstream>

:/

jfouche

Which version of C::B do you use ?
Which compiler do you want to use ?
Do you have the file iostream in the "C:\Program Files\CodeBlocks\include" directory ?
If you want to use gcc (ie MinGW), maybe you have to install it....