Skip to content

Issue linking #79

@DragonSlayer62

Description

@DragonSlayer62

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions