Unable to build mex file

조회 수: 1 (최근 30일)
William Crabb
William Crabb 2017년 11월 16일
답변: Tony Mohan Varghese 2017년 11월 30일
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