[Info-vax] ANSI89 C and Sleep function
GerMarsh
marsh.family at tirhir.com
Thu Dec 8 05:17:25 EST 2011
Hello VMSers
I have to use the /STANDARD=ANSI89 qualifier to compile a C program
with the sleep() funtion in it.
I have found the function def in a header file: #include <unistd.h>
but the link fails with:
%LINK-W-NUDFSYMS, 1 undefined symbol:
%LINK-I-UDFSYM, SLEEP
%LINK-W-USEUNDEF, undefined symbol SLEEP referenced
in psect $LINK$ offset %X00000180
If I remove the /STANDARD qualifier, I don't need the header file and
the link is ok. Anyone know where the object code for that sleep
function lives so I can include it in the link?
I've looked in both user and ref manuals but cannot glean anything
from them.
Signed,
Confused of Cymru (Wales!)
More information about the Info-vax
mailing list