Subj : js_GetSlotThreadSafe problems To : netscape.public.mozilla.jseng From : Mike Moening Date : Thu Mar 17 2005 10:08 am I'm trying to use spidermonkey in a DLL and I keep getting the following linker error. Note: This linker error doesn't occur if I use the js32.dll when building an .EXE. unresolved external symbol "__declspec(dllimport) long __cdecl js_GetSlotThreadSafe I'm on VC++ 6.0 latest SP. When building the original js32.dll I've specificed the following preprocessor defs: DEBUG, JS_THREADSAFE, _X86_=1, _WINDOWS, _WIN32,WIN32, XP_WIN, JSFILE, EXPORT_JS_API For the 2nd DLL I'm creating which uses js32.dll here are the symbols that are being defined: JS_THREADSAFE,XP_WIN,_WIN32.WIN32,NDEBUG,_WINDOWS,_MBCS,_USRDLL The js_GetSlotThreadSafe seems to be one the only functions declared with "extern JS_FRIEND_API" in front of it. From reading the #defines it seems that declaring EXPORT_JS_API should take care of the problem...but does not. Thanks in advance! .