Clear Filters
Clear Filters

Unable to build mex file

3 views (last 30 days)
William Crabb
William Crabb on 16 Nov 2017
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?

Answers (1)

Tony Mohan Varghese
Tony Mohan Varghese on 30 Nov 2017

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!