This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我已经完成了关于如何编译 V8 的所有过程,并且实际上设法在 Windows 平台上编译它。但是,问题在于 Windows 上的编译过程会强制您使用 Visual Studio 进行编译,因此会创建可在 VS 中使用的目标文件 (.obj)。我也设法创建了一个 DLL 文件,但它仅在有可执行文件运行时才起作用。
另一方面,我在 Windows 上使用 Eclipse 和 g++。要将 V8 嵌入到我的 C++ 中,我需要一个库文件(.a 扩展名,以便链接器能够工作)。有没有办法做到这一点?