Re: g++ iostream broken on windows 2000

2003-09-17 Thread Brian Keener
Igor Pechtchanski wrote: > 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") cool thanks, bk -- Unsubscribe info:

Re: g++ iostream broken on windows 2000

2003-09-17 Thread Igor Pechtchanski
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

Re: g++ iostream broken on windows 2000

2003-09-17 Thread Brian Keener
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 G

RE: g++ iostream broken on windows 2000

2003-09-17 Thread Hannu E K Nevalainen \(garbage mail\)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Robert Collins > Oh, and in your output, get rid of the \n, use > cout << "foo" << endl; Now, this is off topic, it belongs in nntp://comp.sys.lang.c++ or some such... but anyway: To make it more verbose: This makes your code easi

Re: g++ iostream broken on windows 2000

2003-09-16 Thread Alex Vinokur
"Brian Keener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] > $ gcc -g -o ./debug/first.exe ./first.cpp [snip] To compile C++ program one should use g++ (not gcc). For instance, $ g++ -g -o ./debug/first.exe ./first.cpp To compile C program one should use gcc. For instance,

Re: g++ iostream broken on windows 2000

2003-09-16 Thread Robert Collins
On Wed, 2003-09-17 at 08:43, Brian Keener 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; instead. Cheers, Rob -- GPG key available at:

Re: g++ iostream broken on windows 2000

2003-09-16 Thread Brian Keener
Alex Vinokur wrote: > > # include > > # include > > using namespace std; // must be for g++ 3.x; otherwise you should use not 'cout' but 'std::cout', etc. > > > > Could someone tell me what I am doing wrong or do I have something set up wrong in my install. I am simply trying to learn bu

Re: g++ iostream broken on windows 2000

2003-09-15 Thread Alex Vinokur
"Vijay Kumar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have upgraded to the latest cygwin this morning and > I can not anymore run my programs that use ifstream to > read input files. It crashes giving segmentation > fault. When I ran strace, I found that the act

Re: g++ iostream broken on windows 2000

2003-09-15 Thread Vijay Kumar
Sorry for providing all the information needed. Ok, let me give it another short. I am using gcc 2.95.3-10 and compiling the program using /usr/bin/g++-2.exe and here's the output from cygcheck -svr Cygwin Win95/NT Configuration Diagnostics Current System Time: Mon Sep 15 16:59:43 2003 Windows

Re: g++ iostream broken on windows 2000

2003-09-15 Thread Igor Pechtchanski
On Mon, 15 Sep 2003, Vijay Kumar wrote: > Hi all, > > I have upgraded to the latest cygwin this morning and > I can not anymore run my programs that use ifstream to > read input files. It crashes giving segmentation > fault. When I ran strace, I found that the actually > fails in mmap.cc complaini