delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/17/13:10: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: Wed, 17 Sep 2003 13:09:55 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Brian Keener <bkeener AT thesoftwaresource DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: g++ iostream broken on windows 2000
In-Reply-To: <VA.00000e69.00588e37@thesoftwaresource.com>
Message-ID: <Pine.GSO.4.56.0309171306220.12411@slinky.cs.nyu.edu>
References: <20030915234312 DOT 66294 DOT qmail AT web40708 DOT mail DOT yahoo DOT com>
<bk618f$pic$1 AT sea DOT gmane DOT org> <VA DOT 00000e68 DOT 00c54369 AT thesoftwaresource DOT com>
<1063753054 DOT 759 DOT 4 DOT camel AT localhost> <VA DOT 00000e69 DOT 00588e37 AT thesoftwaresource DOT com>
Importance: Normal
MIME-Version: 1.0

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/

- Raw text -


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