*BSD News Article 19432


Return to BSD News archive

Xref: sserve comp.unix.bsd:12401 comp.sys.dec:14779
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!hiddenhost!jjt
From: jjt@hiddenhost.jpl.nasa.gov (Jack J. Tuszynski)
Newsgroups: comp.unix.bsd,comp.sys.dec
Subject: Re: LABS - WHAT AM I DOING WRONG?
Date: 12 Aug 1993 22:53:34 GMT
Organization: self
Lines: 30
Distribution: world
Message-ID: <24ehle$75d@elroy.jpl.nasa.gov>
References: <2495tfINNrul@cbl.umd.edu> <7009223@zl2tnm.gen.nz> <1993Aug12.220025.6133@CSD-NewsHost.Stanford.EDU>
NNTP-Posting-Host: 128.149.23.89


I have LNK$LIBRARY defined as SYS$LIBRARY:VAXCRTL in my login.com.  ABS is in 
the VAXCRTL library, but LABS is not.   But the Vax C RTL Ref. Manual says
that LABS should be in VAXCRTL.  I have C language version 3.1 installed
correctly.  I'm running VMS 5.3 BTW.

When I run a program (below), which uses LABS, here is what I get: 
What am I doing wrong?

%LINK-W-NUDFSYMS, 1 undefined symbol:
%LINK-I-UDFSYM,         LABS 
%LINK-W-USEUNDEF, undefined symbol LABS referenced
        in psect $CODE offset %X00000011
        in module LTEST file USER$DISK2:[JJT.SRC]LTEST.OBJ;6

------------------------------- program --------------------------------------

#include <stdio.h>
#include <stdlib.h>

main()

{

long int along,j;

        j = 88;
        along=labs(j);
        printf("along: %d\n",along);
}