Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 16
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