How can i compile a mex file?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello there,
I am trying to run a fast-marching algorithm on a 3d surface with a given toolbox following this instructions: https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/6110/versions/3/previews/toolbox_fast_marching/html/content.html#23
The problem I have is with the compiling the of the mex files, described at "Setting-up the Path and Compiling the Mex Files." After following the instructions i get this output:
>> mex -setup
compile_mex
" MEX configured to use 'gcc' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.
You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
Building with 'g++'.
Error using mex
cc1plus: Fehler: nicht erkannte Kommandozeilenoption »-std=c++11«
Error in compile_mex (line 2)
mex mex/perform_front_propagation_2d.cpp mex/perform_front_propagation_2d_mex.cpp mex/fheap/fib.cpp "
Can anyone tell me how to properly compile those files?
Thanks in Advance!
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!