This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ iostream broken on windows 2000


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]