By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,179 Members | 2,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,179 IT Pros & Developers. It's quick & easy.

A very simple hello world program wont execute in Linux.

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

"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

P: n/a
"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

P: n/a
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.