Open DragonSlayer62 opened 6 months ago
i am running into a problem linking my project because when i add js_static.lib it gives me errors
Severity Code Description Project File Line Suppression State Details Error LNK2001 unresolved external symbol "struct JSClassOps const JS::DefaultGlobalClassOps" (?DefaultGlobalClassOps@JS@@3UJSClassOps@@B) uox3 CJSEngine.obj 1 Error LNK2001 unresolved external symbol "unsigned __int64 js::MallocArena" (?MallocArena@js@@3_KA) uox3 CJSEngine.obj 1 Error LNK2001 unresolved external symbol "public: static class mozilla::Atomic<void (__cdecl*)(unsigned __int64),0,void> js::AutoEnterOOMUnsafeRegion::annotateOOMSizeCallback" (?annotateOOMSizeCallback@AutoEnterOOMUnsafeRegion@js@@2V?$Atomic@P6AX_K@Z$0A@X@mozilla@@A) uox3 regions.obj 1 Error LNK2001 unresolved external symbol "private: static int __cdecl js::ProfilingStackFrame::pcToOffset(class JSScript *,unsigned char *)" (?pcToOffset@ProfilingStackFrame@js@@CAHPEAVJSScript@@PEAE@Z) uox3 regions.obj 1 Error LNK2001 unresolved external symbol "class JS::Handle<class JS::Value> const JS::UndefinedHandleValue" (?UndefinedHandleValue@JS@@3V?$Handle@VValue@JS@@@1@B) uox3 SEFunctions.obj 1 Error LNK1120 5 unresolved externals uox3 uox3.exe 1
when i change my linker outpuit to js_static.lib i get
1>D:\Local\media\Code\repos\UOX3\UOX3\make\VS2022\\..\..\spidermonkey\build\js_static.lib : fatal error LNK1136: invalid or corrupt file
I'm not sure if the statically linked library even works on any platform, I've never tried it. I'd recommend reporting the bug on bugzilla.mozilla.org, though.
i am running into a problem linking my project because when i add js_static.lib it gives me errors
when i change my linker outpuit to js_static.lib i get