【发布时间】:2014-12-11 10:53:01
【问题描述】:
我正在尝试在示例程序中使用从相机供应商处获得的库。我有一个用于库的 .dll 和一个 .lib 文件。我的编译命令是:
g++ -o "Win32App.exe" -L"..\..\SK develop\SK91GigE-WIN\Lib" obj/winmain.o obj/callbacks.o obj/resource.o -s -lcomctl32 -Wl,--subsystem,windows -lSK91GigE_x64
我得到:
obj/winmain.o:winmain.cpp:(.text+0x292): undefined reference to `SK_LOADDLL'
collect2.exe: error: ld returned 1 exit status
查看带有 nm 显示的 .lib:
BFD: SK91GigE_x64.lib(SK91GigE_x64.dll): Recognised but unhandled machine type (0x8664) in Import Library Format archive
nm: SK91GigE_x64.dll: File format not recognized
对于它输出的 dll:
nm: SK91GigE_x64.dll: File format not recognized
有什么想法可以修改该库以包含它吗?
【问题讨论】:
-
您使用的是 64 位 mingw 对吗?