Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: mohit batra cc: cygwin AT cygwin DOT com Subject: Re: c problem In-Reply-To: <008501c2a511$295b94d0$bc4e893e@pomello> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 16 Dec 2002, Max Bowsher wrote: > mohit batra 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 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/