DLL 到 Lib 的帮助
我已经将 dll 转换为 lib。我给了它 lib 和 dll 文件,并告诉它删除不必要的东西。我 #included 它创建的 .h 文件,并在 InitInstance 中调用 GLU_DLLMAIN() 就像我在示例中看到的那样,但当它尝试初始化我的静态 GLU 对象时,它仍然在启动时崩溃。我做错了什么?执行此操作的正确方法是什么以确保我做得正确。谢谢
I have converted a dll to lib. I gave it the lib and dll file and told it to remove the unnecessary stuff. I #included the .h file it created, and called GLU_DLLMAIN() in InitInstance just like I saw in the samples, but it still crahes on start up when it tries to initialize my static GLU object. What am I doing wrong? what is the proper way to do this to make sure I'm doing this right. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,二进制软工具不能在所有情况下工作,所以也许您遇到了这些边缘情况之一。另一方面,.lib 必须使用与其链接的可执行文件相同的编译器设置进行构建,包括有关所使用的标准库版本的假设。
也许您的问题是由于示例项目的编译器设置与转换工具上的默认设置不匹配而产生的。
The binary soft tool cannot so far as I can see work in all cases, so perhaps you have one of these fringe cases. On the other hand the .lib must be build with the same compiler settings as the executable to which is was linked, including assumptions about versions of standard libraries used.
Perhaps your issues are generated by mismatches between the compiler settings for your sample project and default settings on the conversion tools.