MEX compilation error of 64-bit mode

27 visualizzazioni (ultimi 30 giorni)
Golden
Golden il 11 Giu 2020
Commentato: Golden il 16 Giu 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 Commenti
James Tursa
James Tursa il 11 Giu 2020
Can you post the sfun_nind.c code? Is this message in the source code itself?
Golden
Golden il 16 Giu 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.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by