Error Compiling Example C++ mex files

I want to compile a Mathworks provided C++ mex file in visual studio. The example program is arrayProduct.cpp, available here: https://www.mathworks.com/help/matlab/matlab_external/c-mex-functions.html
I follow the advice in the links below to correctly set up the Visual Studio Environment:
When I compile in visual studio, the compiler returns the error: LNK1561 entry point must be defined
Previous advice states that the mex file needs a function input, e.g. void mexFunction(output,input). But the MATLAB example doesn't provide that.
What am I missing?

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

W S
2018 年 10 月 17 日

編集済み:

2018 年 10 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by