Error using mex gcc: error: gdiplus.lib: No such file or directory解决办法

这个问题困扰我很久,终于在这个网站上找到了解决办法,具体如下:
Hi guys,
I tried many different things and finally solved the issue magically, my recipe worked for me, but may/may not work for you.

I have couple of compilers (MinGW64, Visual Studio C++2015); but to solve the issue, I restricted the code to use just one compiler Visual Studio (and not MinGW64 because it didn’t work for me). Change the first lines of code to:

clear all
close all
clc
% Install and compile MatConvNet (needed once).
untar(‘http://www.vlfeat.org/matconvnet/download/matconvnet-1.0-beta23.tar.gz’) ;
cd matconvnet-1.0-beta23

% you choose Visual Studio to be your compliler
mex -setup:‘C:\Program Files\MATLAB\R2016b\bin\win64\mexopts\msvc2015.xml’ C
mex -setup:‘C:\Program Files\MATLAB\R2016b\bin\win64\mexopts\msvcpp2015.xml’ C++

run matlab/vl_compilenn;

BTW, I use:
MATLAB 2016b 64 bits
Visual Studio Community 2015 (which is free: https://www.visualstudio.com/downloads/)
MatConvNet 23
I also have Windows SDV 7.1 installed (I haven’t used it in my code as you see)

Finally, I think you can run the code using Visual Studio 2010 and MATLAB 2016a.

Hope this would solve the issue.

Best

你可能感兴趣的:(解决问题记录)