Skip to content

Linker error, while compiling node js from source (as a shared library) - v 6.11.2 #15195

@ghost

Description

  • Version: 6.11.2
  • Platform: Windows
  • Subsystem: build,shared

I am trying to compile node js as a shared library from source on Windows.
Currently i am following vcbuild.bat - by passing "release" "x64" "dll" as arguments to the script.
Error (listing only one, but contains about 50+ all linker errors to v8_base_3.lib):

v8_base_3.lib(api.obj) : error LNK2005: "public: __cdecl v8::HandleScope::HandleScope(class v8::Isolate *)" (??0HandleScope@v8@@QEAA@PEAVIsolate@1@@Z) already defined in node.lib(node.dll) [D:\node-v6.11.2\cctest.vcxproj]

refack: formatted

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.embeddingIssues and PRs related to embedding Node.js in another project.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions