Re: How to create multiple contexts in different threads?
Jason Orendorff <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <CA+W3DWH=jTP=othcMQvY68Yep2TRmVcLbPK4uUFcvkZ40FWpWA@mail.gmail.com> |
Buiding SpiderMonkey creates a header, dist/include/js-config.h, that defines all these. It is included from jsapi.h (-> jspubtd.h -> jstypes.h -> js-config.h). I think the easiest way to mess it up is not by failing to -DDEBUG, but by compiling correctly --- and then linking against the wrong SM shared library. -j On Wed, Mar 30, 2016 at 8:35 AM, Boris Zbarsky <[email protected]> wrote: > On 3/30/16 7:43 AM, Clément Vuchener wrote: > >> For my application, I am using cmake 3.x with the pkg-config module. >> $ PKG_CONFIG_PATH=$HOME/opt/mozjs-38.2.1.rc0-debug/lib/pkgconfig/ >> pkg-config --cflags --libs js >> -include >> /home/clement/opt/mozjs-38.2.1.rc0-debug/include/mozjs-/js/RequiredDefines.h >> -I/home/clement/opt/mozjs-38.2.1.rc0-debug/include/mozjs- >> -I/usr/include/nspr4 -L/home/clement/opt/mozjs-38.2.1.rc0-debug/lib -lmozjs- >> > > Is DEBUG #defined when compiling your application? It's defined when > compiling SpiderMonkey (you passed --enable-debug) and it's very important > that the DEBUG state of your application and SpiderMonkey match, because > there are things in the SpiderMonkey headers that are #ifdef DEBUG. > > -Boris > > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine > _______________________________________________ dev-tech-js-engine mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine