简体   繁体   中英

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. Thanks

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM