Subj : Re: SpiderMonkey Examples To : netscape.public.mozilla.jseng From : Jeremy Gillick Date : Thu Jul 14 2005 12:14 pm This is a multi-part message in MIME format. --------------020104000400020602030307 Content-Type: multipart/alternative; boundary="------------030909030904090803060001" --------------030909030904090803060001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Now I'm getting the following errors when I try to compile the attached code (which I got from The Embedder's Guide) ld: Undefined symbols: _JS_Init _JS_InitStandardClasses _JS_NewContext _JS_NewObject Thanks, Jeremy Jeremy Gillick wrote: > Ah ha! Thanks it's fixed now. It actually wasn't a build problem at > all. I thought I included that file in my project, and I hadn't. Thanks! > > Brendan Eich wrote: > >> Jeremy Gillick wrote: >> >>> On line #5, before including jsapi.h, I have "#define XP_UNIX", and >>> still no joy. Am I doing it correctly? >> >> >> Looking at the errors slightly more closely (you too can see this): >> >> jstypes.h:231:71: jsautocfg.h: No such file or directory >> >> That means you have not run jscpucfg. Makefile.ref should do this >> for you in its $(OBJDIR)/jsautocfg.h rule. Debug why it didn't. >> >> /be > --------------030909030904090803060001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Now I'm getting the following errors when I try to compile the attached code (which I got from The Embedder's Guide)--------------030909030904090803060001-- --------------020104000400020602030307 Content-Type: text/plain; x-mac-type="54455854"; x-mac-creator="522A6368"; name="simple.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="simple.c" #includeAh ha! Thanks it's fixed now. It actually wasn't a build problem at all. I thought I included that file in my project, and I hadn't. Thanks!
Brendan Eich wrote:Jeremy Gillick wrote:
On line #5, before including jsapi.h, I have "#define XP_UNIX", and still no joy. Am I doing it correctly?
Looking at the errors slightly more closely (you too can see this):
jstypes.h:231:71: jsautocfg.h: No such file or directory
That means you have not run jscpucfg. Makefile.ref should do this for you in its $(OBJDIR)/jsautocfg.h rule. Debug why it didn't.
/be