Subj : Re: Linking problems To : netscape.public.mozilla.jseng From : Jeremy Gillick Date : Fri Jul 22 2005 07:59 pm This is a multi-part message in MIME format. --------------020807020408000809040906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit That was the problem. Thanks! Brendan Eich wrote: > Jeremy Gillick wrote: > >> To compile the program I'm just doing cc simple.c > > > You are not telling cc (or ld, which it calls) where to find the > functions it rightly complains are undefined. You have to name the > library on the command line, either by libjs.a name or with a -ljs > shorthand. > > /be --------------020807020408000809040906 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit That was the problem.  Thanks!

Brendan Eich wrote:
Jeremy Gillick wrote:
To compile the program I'm just doing cc simple.c

You are not telling cc (or ld, which it calls) where to find the functions it rightly complains are undefined.  You have to name the library on the command line, either by libjs.a name or with a -ljs shorthand.

/be
--------------020807020408000809040906-- .