Linking to MSVC DLL from MinGW

后端 未结 4 1710
温柔的废话
温柔的废话 2020-11-30 00:15

I\'m trying to link the LizardTech GeoExpress DSDK into my own application. I use gcc so that we can compile on for platforms. On Linux and Mac this works easily: they pro

4条回答
  •  既然无缘
    2020-11-30 00:47

    To use a DLL in Windows, you link against an import library (not the DLL itself). Import libraries typically have the extension .lib (just like static libraries). If you download the Windows SDK, you'll get import libraries for all of the system DLLs.

    From your question, it sounds like you might have mixed up the .dll with the .lib. Are you sure reimp doesn't take a DLL as input and make a .LIB import library that's compatible with MinGW?

    I just looked up with MinGW is on Wikipedia. According to that article, MinGW comes with redistributable import libraries.

提交回复
热议问题