delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/16/11:35:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 16 Dec 2002 11:34:43 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: mohit batra <mohit2kin AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: c problem
In-Reply-To: <008501c2a511$295b94d0$bc4e893e@pomello>
Message-ID: <Pine.GSO.4.44.0212161132200.22125-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

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:
> http://cygwin.com/bugs.html
> and:
> http://www.tuxedo.org/~esr/faqs/smart-questions.html

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
list.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019