windows下v8链接什么

发布于 2024-10-24 04:25:52 字数 460 浏览 0 评论 0原文

我一直在尝试让一个基本的 v8 程序在 Visual Studio 2010 下工作。我已经能够毫无问题地构建 v8.lib 和 v8.dll。我将 .v8.dll 放在调试文件夹中,并将 v8.lib 添加到 VC lib 文件夹中。

我将 v8.lib 添加到了附加依赖项列表中,但是当我尝试使用 v8 代码构建任何内容时,我收到一系列“错误 LNK2001:无法解析的外部符号”错误,例如“错误 13 错误 LNK2001:无法解析的外部符号 _< em>imp_EncodePointer@4 C:\KHMP\Game_Cpp\KHMPCpp\KHMPCpp\MSVCRTD.lib(atonexit.obj)"

我不确定我缺少哪个库。 V8 肯定是被链接的,就像我从附加依赖项中删除它一样,错误数量会增加。我发现需要使用 ws2_32.lib ,但将其包含在我的附加依赖项中并没有解决问题。

有谁知道我可能缺少哪些库/我可能做错了什么?

I've been trying to get to get a basic v8 program working under visual studio 2010. I've been able to build v8.lib and v8.dll with no problems. I placed the .v8.dll in my debug folder, and added the v8.lib to VC lib folder.

I added v8.lib to my list of additional dependencies, but when I try and build anything using v8 code, I get a series of "error LNK2001: unresolved external symbol" errors such as "Error 13 error LNK2001: unresolved external symbol _imp_EncodePointer@4 C:\KHMP\Game_Cpp\KHMPCpp\KHMPCpp\MSVCRTD.lib(atonexit.obj)"

I'm not sure what library I'm missing. V8 is definitely being linked as if I remove it from Additional Dependencies, the number of errors increases. I found something about needing to use ws2_32.lib, but including that in with my additional dependencies did not fix the problem.

Does anyone have any idea what libraries I might be missing/what I might be doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海夜未眠 2024-10-31 04:25:53

您缺少 kernel32.lib 依赖项。从名为 MSVCRTD.lib 的文件中获取它非常可疑,那是 CRT 的导入库。请确保您使用的任何“框架”都不会试图取代它。并确保您没有复制 .lib 文件来尝试解决另一个链接器问题。就像将 libcmtd.lib 复制到 msvcrtd.lib 一样,这也肯定会导致运行时问题。

You are missing the kernel32.lib dependency. Getting it from a file named MSVCRTD.lib is very fishy, that's the import library for the CRT. Do make sure that whatever 'framework' you are using isn't trying to replace it. And make very sure that you haven't been copying .lib files to try to solve another linker problem. Like copying libcmtd.lib to msvcrtd.lib, that's guaranteed runtime trouble too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文