MEX file compilation error (windows.h)
显示 更早的评论
im trying to use "Windows screenshots" but have a problem with creation of mex file corresponding to file "screenshot.cpp"
Windows screenshots is here: https://nl.mathworks.com/matlabcentral/fileexchange/42841-windows-screenshots
i always get error messages:
.....screenshot.obj:screenshot.cpp:(.text+0x38): undefined reference to `__imp_CreateCompatibleDC'
.....screenshot.obj:screenshot.cpp:(.text+0x52): undefined reference to `__imp_CreateCompatibleBitmap'
...
if i try to do:
mex screenshot.cpp
system: win 10 (64)
tried different c++ compilers (mingw64, Microsoft Visual C++)
please help
or please compile mex file
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support for MinGW-w64 C/C++ Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!