You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using node-gyp to create prebuilt binaries for all platforms using the GitHub Actions CI. The library is a native addon using Go. The Go code (library.go) and the accompanying C interface (library.c) are first compiled using Go/CGO (which uses GCC) to a static C library (library.a). Go only support GCC and not MSVC so I don't have much choice, but at least it's not C++.
Next I try to build the node-gyp library by linking against the library.a, which is using the MSVC toolchain (again, not much choice here). It builds fine, but upon using the library I get: Error: Module did not self-register. It works find on Linux or MacOS (since they use GCC perhaps), so I figured this might be a problem of using MSVC and GCC on Windows, however it seems to build and link fine...? The binding.gyp looks like:
This issue seems no longer relevant as it has been stale for a long time. If there are no objections, I will close this issue next Mon-Tue. In case something similar happens again please open a new issue.
I'm using node-gyp to create prebuilt binaries for all platforms using the GitHub Actions CI. The library is a native addon using Go. The Go code (library.go) and the accompanying C interface (library.c) are first compiled using Go/CGO (which uses GCC) to a static C library (library.a). Go only support GCC and not MSVC so I don't have much choice, but at least it's not C++.
Next I try to build the node-gyp library by linking against the
library.a
, which is using the MSVC toolchain (again, not much choice here). It builds fine, but upon using the library I get:Error: Module did not self-register
. It works find on Linux or MacOS (since they use GCC perhaps), so I figured this might be a problem of using MSVC and GCC on Windows, however it seems to build and link fine...? The binding.gyp looks like:How can I debug this error further? Thanks for the help!
The text was updated successfully, but these errors were encountered: