MEX file compilation error (windows.h)
Show older comments
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
Answers (0)
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!