Linker error LNK2019 from 3rd party library

我只是一个虾纸丫 提交于 2019-12-02 13:41:35

Looks like you're missing the import library for the dll, or the linker cannot find it, in the Linker -> Input -> Additional dependancies

The library paths can be set in Linker -> General -> Additional Library Directories

It may be that the header files try to automatically include the lib file using a #pragma, so you should again check that the linker can find the file.

Another thing to check would be to look at the DLL using dependancy walker and make sure the function you are trying to use really is @52 for the stack cleanup size. Perhaps the sizes of variable types have changed between the compiler versions (for e.g. the typedefs).

Is DLLAPI macro defined to __declspec(dllimport) when you build your application?

If you do miss import library for your DLL, take a look at this MSDN article: How To Create 32-bit Import Libraries Without .OBJs or Source. This way you can make a load-time dynamic linking of third-party DLL for which you do not have import library supplied.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!