[Info-vax] ANSI89 C and Sleep function

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Thu Dec 8 05:54:23 EST 2011


In article <ba1a18ee-5a11-4e0f-b8ec-0a9810cda8bd at u6g2000vbg.googlegroups.com>, GerMarsh <marsh.family at tirhir.com> writes:
>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!)

/PREFIX=ALL

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

All your spirit rack abuses, come to haunt you back by day.
All your Byzantine excuses, given time, given you away.



More information about the Info-vax mailing list