Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 17
hp e3000
programming
and posix
a simple program - 2
Compile and link the source file:
shell/iX> gcc -o hw -D_POSIX_SOURCE hw.c
-o specifies the output file NMPRG
-D defines the symbol _POSIX_SOURCE which is
required for all POSIX programming
Run the program:
shell/iX> hw
hello world