468,505 Members | 1,768 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

A very simple hello world program wont execute in Linux.

Its just a hello world program.
Compile and build goes with no warning or error.

i type ./a.out and the shell just sits there. It doesnt hang but it
just sits there with no output.

I executed the program in ddd, execution window opened up and I got a
blank.
I executed the program using Anjuta same thing.
In all cases the program had no errors or warning. But there is no
execution.

I checked the permision of the files and it has execute for my user.

Help please?
Jul 19 '05 #1
3 4024

"penguinman" <ba******@linuxmail.org> wrote in message
news:96**************************@posting.google.c om...
Its just a hello world program.
Compile and build goes with no warning or error.

i type ./a.out and the shell just sits there. It doesnt hang but it
just sits there with no output.

I executed the program in ddd, execution window opened up and I got a
blank.
I executed the program using Anjuta same thing.
In all cases the program had no errors or warning. But there is no
execution.

I checked the permision of the files and it has execute for my user.

Help please?


Post your code.
Jul 19 '05 #2
"Bob Jacobs" <ne****@robertjacobs.fsnet.co.uk> wrote...

"penguinman" <ba******@linuxmail.org> wrote in message
news:96**************************@posting.google.c om...
Its just a hello world program.
Compile and build goes with no warning or error.

i type ./a.out and the shell just sits there. It doesnt hang but it
just sits there with no output.

I executed the program in ddd, execution window opened up and I got a
blank.
I executed the program using Anjuta same thing.
In all cases the program had no errors or warning. But there is no
execution.

I checked the permision of the files and it has execute for my user.

Help please?


Post your code.


I bet it's something like

#include <iostream>
using namespace std;
int main() {
cin >> "Hello world";
}

Victor
Jul 19 '05 #3
Bob Jacobs wrote:

Post your code.


The idiomatic response is, "My crystal ball is broken. Post the code."
We would also accept "There's a bug on line 42."

;-)

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Rahul Gandhi | last post: by
3 posts views Thread by Bore Biko | last post: by
8 posts views Thread by neil.fraser | last post: by
10 posts views Thread by serge calderara | last post: by
1 post views Thread by c_beginner | last post: by
10 posts views Thread by Sourcerer | last post: by
6 posts views Thread by raghuv119 | last post: by
1 post views Thread by rhle.freak | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.