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: Wed, 17 Sep 2003 13:09:55 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Brian Keener cc: cygwin AT cygwin DOT com Subject: Re: g++ iostream broken on windows 2000 In-Reply-To: Message-ID: References: <20030915234312 DOT 66294 DOT qmail AT web40708 DOT mail DOT yahoo DOT com> <1063753054 DOT 759 DOT 4 DOT camel AT localhost> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 17 Sep 2003, Brian Keener wrote: > Robert Collins wrote: > > > /usr/develop/src/learning > > > $ gcc -g -o ./debug/first.exe ./first.cpp > > > > g++ ! > > > > Oh, and in your output, get rid of the \n, use > > cout << "foo" << endl; > > Thanks Rob, > > That was sort of a duh wasn't it. I guess I need some more reading - > gcc shows in man as the GNU C and C++ compiler and if I do a man g++ I > get the manual for gcc or if I do man "g++". Thought that was the right > one - even though I have seen both. > > Off to the books. > bk Brian, FYI (and to get this into the archives), if there's only one input source file, you can simply use the default make rules, and they should do the right thing, i.e., if you say "make first", it should invoke the right compiler to process first.cpp (at least you'll see what the right compiler is). If you want to pass extra flags, try "make CXXFLAGS=-g CFLAGS=-g first"). Putting the file in a different directory, as in your case, will not be as easy, though... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/