Juergan and All:
> Could you send an example file? It's a bit hard to guess what's wrong
> only from your comments :)
I have attached a sample file. On this particular file section 1.2
doesn't print at all. Furthermore it's touch and go whether the headers
print either.
DAVID
--
Subscribe to the Linux C Mailing Lists Today!
mailto:[EMAIL PROTECTED]
http://users.senet.com.au/~lloy0076/linux_c_programming/index.html
#This file was created by Thu Oct 14 14:36:50 1999
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass linuxdoc
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Title
\added_space_top vfill \added_space_bottom 0.3cm
Developing a
\begin_inset Quotes eld
\end_inset
Hello World!
\begin_inset Quotes erd
\end_inset
Application in C with Linux
\layout Author
David Lloyd
\layout Date
14 September 1999
\layout Abstract
ABSTRACT
\layout Abstract
This document aims to introduce readers to the most basic of all programs
- the classical
\begin_inset Quotes eld
\end_inset
Hello World!
\begin_inset Quotes erd
\end_inset
program.
In doing so it will introduce readers to a number of important programming
constructs, concepts and data types.
\layout Standard
\begin_inset LatexCommand \tableofcontents{}
\end_inset
\layout Section
Developing a
\begin_inset Quotes eld
\end_inset
Hello World!
\begin_inset Quotes erd
\end_inset
Application in C with Linux
\layout Subsection
This document's objectives
\layout Standard
This document aims to introduce you to the C programming language, a small
part of its history, some of its structure and short-comings and, of course,
your very first program.
Here is the outcome of that program:
\layout Standard
# ./hello
\layout Standard
Hello World!
\layout Standard
#
\layout Standard
Whilst this program is not at all exciting it will introduce you to a number
of important concepts and topics in C.
\layout Subsection
What you will learn
\layout Standard
By the end of this tutorial you will be able to:
\layout Itemize
understand the basis of all C programs
\layout Itemize
understand the concept of standard libraries and C headers
\layout Itemize
explain what a function is and understand its structure/syntax
\layout Itemize
write to standard output using printf
\layout Itemize
exit gracefully from the main function
\layout Itemize
create and compile the program using tools supplied with virtually all linux
distributions
\layout Section
Requirements
\layout Standard
This section shows the hardware and software requirements necessary to develop
your first
\begin_inset Quotes eld
\end_inset
Hello World!
\begin_inset Quotes erd
\end_inset
application.
In addition, it also specifies what the author assumes you already know.
\layout Subsection
Hardware and software requirements
\layout Standard
You will need the following to be able to produce the program outlined in
this document:
\layout Itemize
linux
\layout Itemize
gcc or egcs
\layout Itemize
gmake
\layout Itemize
vi, pico, joe or emacs (any text editor will do)
\layout Standard
The author cannot think of a hard-drive installation of linux which would
lack these tools.
Most users can assume that they all exist on their system.
\layout Subsection
Assumed knowledge
\layout Standard
The following knowledge is assumed:
\layout Itemize
basic knowledge of the linux operating system
\layout Itemize
basic computer knowledge, such as what a computer is, what a program is
\layout Itemize
an understanding of linux file permissions (read, write and execute)
\layout Itemize
how to use the text editor of your choice
\layout Standard
As you have managed to obtain this document, the author feels that these
are reasonable assumptions.
\layout Subsection
What do I do if
\layout Standard
Please go to this address: http://www.linux.org.
This is the American Linux User Groups' home pages.
There are sections for new users of linux through to experienced users
of linux.
Read the many and varied FAQs.
Consider joining a local linux user group's mailing list to ask more detailed
questions.
\layout Section
An Overview of C
\layout Standard
This section gives a brief overview of the C programming language.
First it gives a short history of the language, a brief description of
the language and a brief discussion of C's shortcomings.
\layout Subsection
History of C
\layout Standard
In 1965, the MIT had sponsored a project codenamed Project MAC.
Co-funded by General Electric and Bell Labs, two talented programmers Thompson
and Ritchie began to prod