Subj : Re: SpiderMonkey Examples To : netscape.public.mozilla.jseng From : Jeremy Gillick Date : Tue Jul 12 2005 05:46 pm This is a multi-part message in MIME format. --------------090004000704050903040605 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On line #5, before including jsapi.h, I have "#define XP_UNIX", and still no joy. Am I doing it correctly? Thanks, Jeremy Brendan Eich wrote: > Jeremy Gillick wrote: > >> By the way, attached is the code that I am trying to compile (with >> gcc) and the errors generated. >> >> Jeremy Gillick wrote: >> >>> Right now when I try to compile the code found in the Embedding >>> Tutorial I >>> get tons of compile errors. I imagine that it is do to something I >>> have done wrong. Can somebody point me to some simple & complete >>> code that I can try to compile? I'm doing this on a G4 Apple >>> Powerbook, >> > > Make sure you define XP_UNIX somehow. > > /be --------------090004000704050903040605 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On line #5, before including jsapi.h, I have "#define XP_UNIX", and still no joy.  Am I doing it correctly?

Thanks,
Jeremy

Brendan Eich wrote:
Jeremy Gillick wrote:
By the way, attached is the code that I am trying to compile (with gcc) and the errors generated.

Jeremy Gillick wrote:

Right now when I try to compile the code found in the Embedding Tutorial <http://www.mozilla.org/js/spidermonkey/tutorial.html> I get tons of compile errors.  I imagine that it is do to something I have done wrong.  Can somebody point me to some simple & complete code that I can try to compile?  I'm doing this on a G4 Apple Powerbook,

Make sure you define XP_UNIX somehow.

/be
--------------090004000704050903040605-- .