mex giving error in Matlab R2015a
Show older comments
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 Comments
Riccardo Scorretti
on 22 Apr 2022
Can you post the source code and a simple program to test it, so that we can try to compile it?
Kraka Doros
on 22 Apr 2022
Benjamin Thompson
on 22 Apr 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
on 22 Apr 2022
Edited: Kraka Doros
on 22 Apr 2022
Bruno Luong
on 22 Apr 2022
Stupid question, but do you have the write access to the folder where you want to build the mexw32 file?
Kraka Doros
on 22 Apr 2022
Edited: Kraka Doros
on 22 Apr 2022
Bruno Luong
on 22 Apr 2022
Edited: Bruno Luong
on 22 Apr 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
on 24 Apr 2022
Edited: Kraka Doros
on 24 Apr 2022
Kraka Doros
on 25 Apr 2022
Kraka Doros
on 1 May 2022
Bruno Luong
on 1 May 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.
Answers (0)
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!