MEX compilation error of 64-bit mode

27 次查看(过去 30 天)
Golden
Golden 2020-6-11
评论: Golden 2020-6-16
Hi,
I have Matlab 2017b and I have installed the latest minGW compiler. I manually set up the enviroment variable to point to this minGW folder. However, when I try to command compile a c file sfun_nInd.c
I got this:
>> mex sfun_nInd.c
Building with 'MinGW64 Compiler (C)'.
Error using mex
C:\Users\\models\sfun_nInd.c:1:0: sorry, unimplemented: 64-bit mode not
compiled in
/*
Any idea where to start to fix this?
  2 个评论
James Tursa
James Tursa 2020-6-11
Can you post the sfun_nind.c code? Is this message in the source code itself?
Golden
Golden 2020-6-16
It's the same as sfun_atol.c in the demo folder. I just changed the first line of code to
#define S_FUNCTION_NAME sfun_nInd
and renamed the file name to sfun_nInd.c. This was a starter test and it failed. Thanks for the help.

请先登录,再进行评论。

回答(0 个)

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by