Windows下使用DLL的C ++程序在启动时终止,如果是dll,如何确定原因?

时间:2018-09-30 20:45:48

标签: linux dll msys ldd

我在Windows下的msys2上构建了DevIL图像库,并尝试使用其API来构建代码。 它崩溃了,所以我删除了main中的所有代码。仅声明头文件。

#include <IL/devil_cpp_wrapper.hpp>
#include "IL/il.h"

int main() {
}

问题似乎出在寻找动态库上 使用ldd。有两项显示??? ==> ??? 有什么方法可以确定哪个库导致了问题?

ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffe7b4f0000)
KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffe7a510000)
KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ffe77b10000)
msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ffe7ab00000)
USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7ffe7b320000)
libILUT.dll => /d/git/extcode/DevIL/libILUT.dll (0x71000000)
libIL.dll => /d/git/extcode/DevIL/libIL.dll (0x66d80000)
win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7ffe77d90000)
libILU.dll => /d/git/extcode/DevIL/libILU.dll (0x66400000)
GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7ffe7a650000)
??? => ??? (0x150000)
gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll (0x7ffe787e0000)
msvcp_win.dll => /c/WINDOWS/System32/msvcp_win.dll (0x7ffe77e30000)
ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7ffe786e0000)
libjasper-1.dll => /mingw64/bin/libjasper-1.dll (0x617c0000)
liblcms2-2.dll => /mingw64/bin/liblcms2-2.dll (0x6b240000)
libjpeg-8.dll => /mingw64/bin/libjpeg-8.dll (0x6b800000)
libpng16-16.dll => /mingw64/bin/libpng16-16.dll (0x68b40000)
libtiff-5.dll => /mingw64/bin/libtiff-5.dll (0x68ec0000)
libsquish.dll => /mingw64/bin/libsquish.dll (0x638c0000)
libgcc_s_seh-1.dll => /mingw64/bin/libgcc_s_seh-1.dll (0x61440000)
libstdc++-6.dll => /mingw64/bin/libstdc++-6.dll (0x6fc40000)
GLU32.dll => /c/WINDOWS/SYSTEM32/GLU32.dll (0x7ffe61c80000)
??? => ??? (0xe90000)
OPENGL32.dll => /c/WINDOWS/SYSTEM32/OPENGL32.dll (0x7ffe627f0000)
zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)
ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ffe7a8d0000)
sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ffe78980000)
liblzma-5.dll => /mingw64/bin/liblzma-5.dll (0x63cc0000)
RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ffe789e0000)
libgomp-1.dll => /mingw64/bin/libgomp-1.dll (0x63600000)

0 个答案:

没有答案