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
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
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?
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
[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
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
/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
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
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
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
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
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
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
/* 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
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
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
16 matches
Mail list logo