MEX compilation error of 64-bit mode

10 views (last 30 days)
Golden
Golden on 11 Jun 2020
Commented: Golden on 16 Jun 2020
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 Comments
James Tursa
James Tursa on 11 Jun 2020
Can you post the sfun_nind.c code? Is this message in the source code itself?
Golden
Golden on 16 Jun 2020
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.

Sign in to comment.

Answers (0)

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!