mex giving error in Matlab R2015a
Afficher commentaires plus anciens
MatlabR2015a in Windows10 Pro (Version 10.0.14393)
>> mex FGG_Convolution1D.c
Building with 'lcc-win32'.
Error using mex
Writing library for FGG_Convolution1D.mexw32.
Since 12 hours, i tried everything with no success. I already had install SDK, but after did not work, uninstall it. Now i have installed Microsift NET Framework 4.62 SDK and Microsift NET Framework 4.62 Targeting Pack, (not work, too). I also have installed MATLAB Runtime 8.5. I download NUFFT codes but do not work (even for FORTRAN).
I have very little expirience with compiling. If somebody can help me , must explaine very detailed and step by step.
My goal is to make a Non Uniform Fast Fourier Analysis.
Thanks
11 commentaires
Riccardo Scorretti
le 22 Avr 2022
Can you post the source code and a simple program to test it, so that we can try to compile it?
Kraka Doros
le 22 Avr 2022
Benjamin Thompson
le 22 Avr 2022
The instructions with NUFFT say that the C code is meant to be compiled by mex directly. Can you do mex -v FGG_Convolution1D.c and provide the output of the verbose compile? Did you run "mex -setup C" successfully?
Kraka Doros
le 22 Avr 2022
Modifié(e) : Kraka Doros
le 22 Avr 2022
Bruno Luong
le 22 Avr 2022
Stupid question, but do you have the write access to the folder where you want to build the mexw32 file?
Kraka Doros
le 22 Avr 2022
Modifié(e) : Kraka Doros
le 22 Avr 2022
Bruno Luong
le 22 Avr 2022
Modifié(e) : Bruno Luong
le 22 Avr 2022
You cannot write the file where you want, this is system protection to prevent user to erase important system file.
You have you document folder where you should store your stuffs. This is not specific to MATLAB compiler but Windows OS.
To put the output where you want, use
mex -o ...
option. Alternatively you can also move/copy the c file to your own folder, where you are allowed to write files, cd there before invoke mex command.
Kraka Doros
le 24 Avr 2022
Modifié(e) : Kraka Doros
le 24 Avr 2022
Kraka Doros
le 25 Avr 2022
Kraka Doros
le 1 Mai 2022
Bruno Luong
le 1 Mai 2022
Such question seems to be more appropriate to be directed to whom ever the author of the code.
Here most of us don't kwow this code (I guess) I can't answer how to use it.
Réponses (0)
Catégories
En savoir plus sur Troubleshooting in MATLAB Compiler SDK dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!