开发者

Help with DLL to Lib

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. Tha开发者_Go百科nks


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜