Discussion:
Building SpiderMonkey from Trunk using MSVC6
(too old to reply)
kokhoor
2006-11-23 03:59:42 UTC
Permalink
Hi all,

I have used cvs to checkout the SpiderMonkey source from the trunk at
mozilla/js/src, and tried building it, using the steps given. I have even
added '/OPT:REF /OPT:NOICF' to the linker option as stated in some
documents.

The command I used to build was:

nmake /f js.mak CFG="js - Win32 Debug"

However, I received the following linking errors and if I am not mistaken,
all these functions are defined in jsiter.h and jsiter.c:

<error>
jsapi.obj : error LNK2001: unresolved external symbol _js_GeneratorClass
jsapi.obj : error LNK2001: unresolved external symbol _js_IteratorClass
jsapi.obj : error LNK2001: unresolved external symbol _js_StopIterationClass
jsapi.obj : error LNK2001: unresolved external symbol
_js_InitIteratorClasses
jsobj.obj : error LNK2001: unresolved external symbol
_js_InitIteratorClasses
jsgc.obj : error LNK2001: unresolved external symbol
_js_CloseGeneratorObject
jsgc.obj : error LNK2001: unresolved external symbol _js_CloseIteratorState
jsinterp.obj : error LNK2001: unresolved external symbol _js_NewGenerator
jsinterp.obj : error LNK2001: unresolved external symbol
_js_CloseNativeIterator

jsinterp.obj : error LNK2001: unresolved external symbol
_js_CallIteratorNext
jsinterp.obj : error LNK2001: unresolved external symbol _js_ValueToIterator
.\Debug/js32.dll : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
</error>

Is there any step I have left out? Any ideas what I can do to fix this?

Thanks in advance.

Regards,
Kok Hoor
SirDarckCat
2006-12-04 00:31:46 UTC
Permalink
Post by kokhoor
Hi all,
I have used cvs to checkout the SpiderMonkey source from the trunk at
mozilla/js/src, and tried building it, using the steps given. I have even
added '/OPT:REF /OPT:NOICF' to the linker option as stated in some
documents.
nmake /f js.mak CFG="js - Win32 Debug"
However, I received the following linking errors and if I am not mistaken,
<error>
jsapi.obj : error LNK2001: unresolved external symbol _js_GeneratorClass
jsapi.obj : error LNK2001: unresolved external symbol _js_IteratorClass
jsapi.obj : error LNK2001: unresolved external symbol _js_StopIterationClass
jsapi.obj : error LNK2001: unresolved external symbol
_js_InitIteratorClasses
jsobj.obj : error LNK2001: unresolved external symbol
_js_InitIteratorClasses
jsgc.obj : error LNK2001: unresolved external symbol
_js_CloseGeneratorObject
jsgc.obj : error LNK2001: unresolved external symbol _js_CloseIteratorState
jsinterp.obj : error LNK2001: unresolved external symbol _js_NewGenerator
jsinterp.obj : error LNK2001: unresolved external symbol
_js_CloseNativeIterator
jsinterp.obj : error LNK2001: unresolved external symbol
_js_CallIteratorNext
jsinterp.obj : error LNK2001: unresolved external symbol _js_ValueToIterator
.\Debug/js32.dll : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
</error>
Is there any step I have left out? Any ideas what I can do to fix this?
Thanks in advance.
Regards,
Kok Hoor
Hello!

well.. i had the same problem..

try with this one:
http://ftp.mozilla.org/pub/mozilla.org/js/

if you have the GNU Linker, remove its path from the %PATH% enviroment
variable.

any way, using the .MDP will work fine :P

it also includes JSD (javascript debugger)

Greetz!!
j***@gmail.com
2006-12-06 04:05:01 UTC
Permalink
try to add the following line at the beginning of jsinterp.c

#include "jsiter.c"
SirDarckCat
2006-12-08 23:10:58 UTC
Permalink
Post by j***@gmail.com
try to add the following line at the beginning of jsinterp.c
#include "jsiter.c"
:o
it worked fine ;)
thanks!!

Loading...