MEX compilation error of 64-bit mode

11 vues (au cours des 30 derniers jours)
Golden
Golden le 11 Juin 2020
Commenté : Golden le 16 Juin 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 commentaires
James Tursa
James Tursa le 11 Juin 2020
Can you post the sfun_nind.c code? Is this message in the source code itself?
Golden
Golden le 16 Juin 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.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by