Merge pull request #32 from MattiaMontanari/31-cannot-make-it-work-for-matlab-under-ubunto20

Update compiler definition
This commit is contained in:
Mattia Montanari
2022-10-17 16:31:38 +02:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ mex(fullfile('..','..','src','openGJK.c'),... % Source of openGJK
fullfile('-I..','..','include'),... % Folder to header files fullfile('-I..','..','include'),... % Folder to header files
'-outdir', pwd,... % Ouput directory for writing mex function '-outdir', pwd,... % Ouput directory for writing mex function
'-output', 'openGJK',... % Name of ouput mex file '-output', 'openGJK',... % Name of ouput mex file
'-DMATLABDOESMEXSTUFF',... % Define variable for mex function in source files '-DMATLAB_MEX_BUILD',... % Define variable for mex function in source files
silflag ) % Silent/verbose flag silflag ) % Silent/verbose flag
% File compiled without errors. Return path and name of mex file % File compiled without errors. Return path and name of mex file
@@ -62,4 +62,4 @@ end
% RUN EXAMPLE % RUN EXAMPLE
fprintf('Running example... ') fprintf('Running example... ')
main main
fprintf('completed!\n') fprintf('completed!\n')