Newsgroups: comp.lang.apl
Path: watmath!watserv1!utgpu!news-server.csri.toronto.edu!torsqnt!jtsv16!itcyyz!yrloc!hui
From: hui@yrloc.ipsa.reuter.COM (Roger Hui)
Subject: Re: LinkJ for the Sun 3
Message-ID: <1991Dec13.044102.13624@yrloc.ipsa.reuter.COM>
Organization: Iverson Software Inc.
References: <91345.155310HAC041@DJUKFA11.BITNET>
Date: Fri, 13 Dec 91 04:41:02 GMT

Konrad Hinsen writes:
>Did anyone manage to produce a working program from LinkJ for the Sun 3?
>When I tried to compile and link the demo program as specified in the
>instructions by entering "cc main.c *.o" I got the following list of
>undefined symbols from the linker:
>ld: Undefined symbol
>   ___infinity
>   _cos
>   _atan2
>   _jma
>   ...

The instructions are in error, and should have said   cc main.c *.o -lm 
In UNIX, the standard math library is named "m" and "-lm" specifies
a link to it.  The symbols "jma", "jinit", and "jx" should be in the 
file "lj.o" and should not have been missing.

------------------------------------
Roger Hui, Iverson Software Inc., 33 Major Street, Toronto, Ontario  M5S 2K9
Phone: (416) 925 6096;  Fax: (416) 488 7559
