Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue linking #79

Open
DragonSlayer62 opened this issue Apr 23, 2024 · 1 comment
Open

Issue linking #79

DragonSlayer62 opened this issue Apr 23, 2024 · 1 comment

Comments

@DragonSlayer62
Copy link

DragonSlayer62 commented Apr 23, 2024

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
@ptomato
Copy link
Collaborator

ptomato commented Jul 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants