可以使用 eclipse CDT 代替 vc++ 以便使用 SWIG 调用 node.js 中的 C++ 库吗?

can eclipse CDT be used in place of vc++ inorder to call C++ library in node.js by using SWIG?

我有一个要在 node.js 中调用的 C++ 库。 为此,我选择了 SWIG。但它需要使用 visual studio c++。 我的偏好是 eclipse CDT。有什么方法可以将 SWIG 与 eclipse 一起使用吗? 还有任何其他工具或插件可以帮助 node.js 和 c++ 之间的接口。

不需要您使用 Visual Studio 作为您的 IDE,只需要您使用 MSVC 工具链,因为 MinGW 和 MSVC 与 ABI 不兼容。要在 Eclipse 中使用 MSVC 工具链,请参阅 this guide