RE: [expert] cout/cerr don't work when using c++ in mandrake 8
How are you compiling it? (ie. command-line or IDE?) To create a simple C++ "Hello World!" program under linux, do this: In your favorite editor, start the file "hello.cpp" and type this in: #include void main(void) { cout << "Hello World!\n"; // include these two lines so that the program "pauses" // and doesn't just flash by -- waits for a key to be // pressed before it continues (ends) cout << "\nPress any key to continue..."; cin.get(); } Save the file, and then on the command line, do this: g++ -o hello hello.cpp now make the file 'hello' executable by doing this: chmod a+x hello now run the file: ./hello See if that works... Russell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eric Krout Sent: Monday, May 07, 2001 12:03 PM To: [EMAIL PROTECTED] Subject: Re: [expert] cout/cerr don't work when using c++ in mandrake 8 Nope, doesn't work with that either. This is *really* fscked up. I'd think that the best Linux distro would allow me to write a frigging "hello world" program in C or C++. On Monday 07 May 2001 01:33, you wrote: > #include > > > anyone else have this problem? i did an : > > > > #include > > > > in my source file, and it compiled fine, but nothing gets outputted to > > the buffer. > > > > any ideas? > > > > - eric
Re: [expert] cout/cerr don't work when using c++ in mandrake 8
Send me the code. > Nope, doesn't work with that either. This is *really* fscked up. I'd think > that the best Linux distro would allow me to write a frigging "hello world" > program in C or C++. > > On Monday 07 May 2001 01:33, you wrote: > > #include > > > > > anyone else have this problem? i did an : > > > > > > #include > > > > > > in my source file, and it compiled fine, but nothing gets outputted to > > > the buffer. > > > > > > any ideas? > > > > > > - eric >
Re: [expert] cout/cerr don't work when using c++ in mandrake 8
Nope, doesn't work with that either. This is *really* fscked up. I'd think that the best Linux distro would allow me to write a frigging "hello world" program in C or C++. On Monday 07 May 2001 01:33, you wrote: > #include > > > anyone else have this problem? i did an : > > > > #include > > > > in my source file, and it compiled fine, but nothing gets outputted to > > the buffer. > > > > any ideas? > > > > - eric
Re: [expert] cout/cerr don't work when using c++ in mandrake 8
#include > anyone else have this problem? i did an : > > #include > > in my source file, and it compiled fine, but nothing gets outputted to the > buffer. > > any ideas? > > - eric >
[expert] cout/cerr don't work when using c++ in mandrake 8
anyone else have this problem? i did an : #include in my source file, and it compiled fine, but nothing gets outputted to the buffer. any ideas? - eric