473,320 Members | 2,104 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,320 software developers and data experts.

Re: C newbie problem

On Jun 28, 7:01 pm, tom <nos...@nospam.invalidwrote:
Hi -
Hi
>
I'm just starting to learn C and I'm trying to compile a first hello
world program. Unfortunately when I press the compile button it doesn't
work. Can anyone give me any advice?
Yes. Just any advice or something in particular?
>
Thanks!

~tom
Put your signature at the bottom of your post not in the middle.
Problem code follows:

(helloworld.c)
<snip code>
// 1 and 2 above on a medium customarily used for software
interchange; or,
There's your problem, intercharge is not defined anywhere. nor 'or'.
(iso646.h is not included)
<snip>
// this License, you may choose any version ever published by the Free
Software
'Software' is not defined anywhere.
<snip>
// 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY
'WARRANTY' is not defined anywhere.
<snip>
// PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED
'EXPRESSED' is not defined anywhere.
<snip>
// 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING
'WRITING' is not defined anywhere.
// REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
DAMAGES,
'DAMAGES' is not defined anywhere.
// INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING
'ARISING' is not defined anywhere.
// YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
OTHER
'OTHER' is not defined anywhere.
// free software which everyone can redistribute and change under these
terms.
'terms' is not defined anywhere.
// <one line to give the program's name and a brief idea of what it
does.>
'does' is not defined anywhere. '.>' is a syntax error.
// You should have received a copy of the GNU General Public License
along
'along' is not defined anywhere.
// with this program; if not, write to the Free Software Foundation,
Inc.,
'Inc' is not defined anywhere. '.,' is a syntax error.
// Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
`show w'.
` is not in the standard C character set. 'show' is not defined
anywhere. 'w' is not defined anywhere. unmatched '.
// The hypothetical commands `show w' and `show c' should show the
appropriate
'appropriate' is not defined anywhere.
// `Gnomovision' (which makes passes at compilers) written by James
Hacker.
'Hacker' is not defined anywhere.
// This General Public License does not permit incorporating your
program into
'program', 'into' are not defined anywhere.
// consider it more useful to permit linking proprietary applications
with the
'with', 'the' are not defined anywhere.
void main()
Change that to int main(void).
{
printf("Hello, world!\n");

}
return 0; is not needed here, as you use // comments, so C99.
Jun 28 '08 #1
0 1546

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wadacom | last post by:
I'm sorry to take your time for newbie problems but I've been searching what to do about the problem with my apache server I have. I work with ubuntu dapperdrake I put the last apache server on it...
0
by: emparc | last post by:
Hello Gurus, I am a newbie to SQL without any formal training (using Navigator 5) and reached a dead-end on trying to figure out the logic and the coding I need to make this work ! Your...
9
by: John | last post by:
Hello all. I am a PHP newbie and am having an issue using the && in an if statement. here is the code: if ($_REQUEST == "1" && date("Y-m-d") < $rowWork) { die("<h1>The earlybird special has...
7
by: idiolect | last post by:
Hi all - Sorry to plague you with another newbie question from a lurker. Hopefully, this will be simple. I have a list full of RGB pixel values read from an image. I want to test each RGB band...
0
by: Alan Silver | last post by:
Hello, I'm a newbie at PHP and MySql, although I have wads of experience of ASP, ASP.NET, SQL Server, etc. I have just installed PHP 5.2.3 on a server (Windows Server 2003), as well as MySql...
2
by: James Calivar | last post by:
I'm a newbie trying to write a script that uses threads. I'm right now a little bit stuck in understanding why the code snippet I wrote doesn't seem to be entering the function defined in the...
5
by: Dave | last post by:
I am new to Visual Web Developer 2005 Expres. I am using absolute positioning and every time I add a button control to my web form its width extends all the way to the edge of the page. IOW I...
0
by: Edwin.Madari | last post by:
-----Original Message----- statement prepared first and executed many times with exectemany - db API http://www.python.org/dev/peps/pep-0249/ inline statemets can be exeucuted only. hope that...
0
by: Robert Kern | last post by:
Joe Hays wrote: You will want to ask numpy questions on the numpy mailing list (preferably with a subject line a bit more informative with respect to the actual problem). ...
6
Markus
by: Markus | last post by:
Things to discuss: Headers What are they? What does PHP have to do with headers? Why can they only be sent before any output? Common causes
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.