RE: [newbie] g++ compiler error

2000-11-23 Thread Dennis M Pettersson
Try ./a.out or sh a.out -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Wilbert Ho Sent: Wednesday, November 22, 2000 10:47 PM To: [EMAIL PROTECTED] Subject: [newbie] g++ compiler error Hello. I wrote an elementary C++ program with vi and called

Re: [newbie] g++ compiler error

2000-11-23 Thread Paul
On Wed, 22 Nov 2000, Wilbert Ho wrote: Hello. I wrote an elementary C++ program with vi and called it temp.cpp After compiling with g++ temp.cpp I'm presented with the executable a.out (which is as it should be). My problem is, when I try running a.out all I'm getting is bash: Command not found

[newbie] g++ compiler error

2000-11-22 Thread Wilbert Ho
Hello. I wrote an elementary C++ program with vi and called it temp.cpp After compiling with g++ temp.cpp I'm presented with the executable a.out (which is as it should be). My problem is, when I try running a.out all I'm getting is bash: Command not found Any ideas?

Re: [newbie] g++ compiler

2000-10-20 Thread GAPrichard
In a message dated 10/18/2000 6:11:52 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: /* Sample code - Hello World to test g++ */ #include iostream.h int main() { cout "Hello World" endl; return 0; } This fails under a standard, developer installation of LM

Re: [newbie] g++ compiler

2000-10-20 Thread Larry Marshall
[EMAIL PROTECTED] wrote: This fails under a standard, developer installation of LM 7.1. Go figure. I just don't know what they're thinking. They're thinking desktop (as in Windon't desktop) not hobbiest or programmer. Yet hobbiest is the level needed to configure the system for use

RE: [newbie] g++ compiler

2000-10-19 Thread A V Flinsch
On Wed, 18 Oct 2000, you wrote: hmm, this compiled and ran fine on my installation of 7.1... what kind of error did you get? And so it should as it's perfectly legitimate (and basic) code. The error is caused by the lack of existence of the iostream library. I'm kinda surprised that

Re: [newbie] g++ compiler

2000-10-19 Thread Larry Marshall
/usr/include/g++-2/iostream /usr/include/g++-2/iostream.h /usr/include/g++-2/stdiostream.h /usr/include/g++-3/iostream /usr/include/g++-3/iostream.h /usr/include/g++-3/stdiostream.h Sure makes sense that they should exist there but they don't on my installation. There's no libstdc++ in

Re: [newbie] g++ compiler

2000-10-19 Thread Larry Marshall
Hrmmm I was going to say all I did was install the developer installation but I do remember selecting packages as well and also installed any rpms that included dev in them =o\ didn't realize they didn't do it by default for a second there I thought I typed something wrong =o) If

Re: [newbie] g++ compiler

2000-10-19 Thread Kevin . McCann
There are 3 or 4 RPM's : egcs-XXX The egcs-c++ contains the header files. I believe that the full set of egcs's has everything for gcc, g++, g77 . Yes it is strange. I setup as "developer". Now, if one is a "developer", presumably one would occasionally be called upon to "develop" some code and

[newbie] g++ compiler

2000-10-18 Thread chronos
Hi all, This is probably a silly question but how do you get the g++ compiler to work ? Im not getting any errors Im just not sure how to use the program. Im going to college in january and would like to get a head start on things. Im using mandrake 7.0. My prefered environment is

Re: [newbie] g++ compiler

2000-10-18 Thread lselinger
Hi all, This is probably a silly question but how do you get the g++ compiler to work ? Im not getting any errors Im just not sure how to use the program. Im going to college in january and would like to get a head start on things. Im using mandrake 7.0. My prefered environment is

RE: [newbie] g++ compiler

2000-10-18 Thread Mark Johnson
programming in Linux, like how to build makefiles, how to use gdb and the profiler, and how to use CVS... good luck! -Original Message- To: [EMAIL PROTECTED] Subject: Re: [newbie] g++ compiler Hi all, This is probably a silly question but how do you get the g++ compiler to work ? Im

Re: [newbie] g++ compiler

2000-10-18 Thread Larry Marshall
This is probably a silly question but how do you get the g++ compiler to work ? Im not getting any errors Im just not sure how to use the program. You execute "g++ great_program.cpp" from the commandline. For any programming project other than something trivial, though, you'll likely call

Re: [newbie] g++ compiler

2000-10-18 Thread Larry Marshall
/* Sample code - Hello World to test g++ */ #include iostream.h int main() { cout "Hello World" endl; return 0; } This fails under a standard, developer installation of LM 7.1. Go figure. I just don't know what they're thinking. Cheers --- Larry

RE: [newbie] g++ compiler

2000-10-18 Thread Mark Johnson
Other good references are the newsgroups: comp.os.unix.programmer newsgroup and comp.os.lang.c++ -Original Message- From: Larry Marshall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 18, 2000 4:50 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] g++ compiler This is probably

Re: [newbie] g++ compiler

2000-10-18 Thread John Rye
Larry Marshall wrote: hmm, this compiled and ran fine on my installation of 7.1... what kind of error did you get? And so it should as it's perfectly legitimate (and basic) code. The error is caused by the lack of existence of the iostream library. I'm kinda surprised that you can