Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Brian Keener <bkeener@thesoftwaresource.com>
cc: cygwin@cygwin.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.66294.qmail@web40708.mail.yahoo.com>
 <bk618f$pic$1@sea.gmane.org> <VA.00000e68.00c54369@thesoftwaresource.com>
 <1063753054.759.4.camel@localhost> <VA.00000e69.00588e37@thesoftwaresource.com>
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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/

