This is the mail archive of the
mailing list for the Cygwin project.
Re: c problem
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: mohit batra <mohit2kin at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 16 Dec 2002 11:34:43 -0500 (EST)
- Subject: Re: c problem
- Reply-to: cygwin at cygwin dot com
On Mon, 16 Dec 2002, Max Bowsher wrote:
> mohit batra <mohit2kin at yahoo.com> wrote:
> > i am trying to run a c program in cygwin howevr when
> > i run the program the printf statements output is not
> > shown on screen .
> > also i want to know what is the extension that must be
> > given to c++ file in order to compile with c++ .
> > whwn i tried to compile with C or c++ or .cpp
> > extensions it gave error that it cannot find
> > iostream.h file .
> Both problems above sound like user error.
> I strongly suggest you read:
The second one actually sounds like a "Read the manual" error. IIRC, gcc
3.2 is much stricter about C++ standards, and requires the use of
namespaces instead of header files. Thus, #include <iostream> should
work. This is a generic C++ issue, however, and is off-topic to this
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html