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

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值