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 个)

产品

版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by