Unable to build mex file

3 次查看(过去 30 天)
William Crabb
William Crabb 2017-11-16
I've followed the Matlab example for creating a mex file from here https://uk.mathworks.com/help/matlab/matlab_external/standalone-example.html
When I run the command mex arrayProduct.cpp (the name of my file), I get the following error
Building with 'Microsoft Visual C++ 2017'.
Error using mex LINK : error LNK2001: unresolved external symbol mexfilerequiredapiversion arrayProduct.lib : fatal error LNK1120: 1 unresolved externals
I'm using Matlab 2015b 32-bit, with the 2017 C++ compiler. Is there some preliminary set-up required for making mex files that isn't mentioned in the matlab tutorial?

回答(1 个)

Tony Mohan Varghese
Tony Mohan Varghese 2017-11-30

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by