473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 4405

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Rahul Gandhi | last post by:
Hi guys, I'm trying to run small program helloworld.cpp. But i'm not getting any output on the stdout program is #include<iostream.h> main(){ cout<<"hello world"; }
3
by: Bore Biko | last post by:
Dear, I don't have enought money to by a original Visual C++, so I use Visual C++ 6.0 Enterprise edition, this version doesen't have a HELP. Most of my friends programmers praise C++, as a...
8
by: neil.fraser | last post by:
I'm looking for a lightweight dialog boxes from Python. JavaScript uses: alert(), confirm() and prompt() VB uses: MsgBox() and InputBox() EasyGui seemed perfect, but a "Hello World" application...
10
by: serge calderara | last post by:
Dear all, I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when...
1
by: c_beginner | last post by:
yes, this is my how work question. Since I am lack in getting an assistance with my lab work I put this in this advance group. Sorry for the trouble I am making. Write a program to calculate the...
10
true911m
by: true911m | last post by:
This is a simple walkthrough to get PyInstaller up and running. I decided to give PI a try, because it claims to be more selective about what it bundles into its executable files by default, and...
10
by: Sourcerer | last post by:
I wrote this very simple code in .NET VC++. I compiled it on my system, and tried to run it on my friend's computer (he doesn't have the compiler). We both have Windows XP Professional. I have .NET...
6
by: raghuv119 | last post by:
what am I doing wrong here. on a 64 bit m/c if I just do g++ t.cpp everything works find. if I do g++ -m32 t.cpp it just breaks. ==================== #include <iostream> static int mcount =...
1
by: rhle.freak | last post by:
#include<iostream> int main(void) { std::cout << "Hello World" << std::<<endl; return 0; } I am compiling it on my linux box (rhel 5) using g++ hello.cpp -o hello.o and
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.