barzi
23-04-2008, 16:31
Ciao a tutti.
Ho installato sul mio ibook Matlab e un tool che si chiama truetime che gira sotto simulink. Ora credo che dovrei dire a Matlab di utilizzare un compilatore C++. Voi che compilatore ci avete messo? E come si fa a fare questo "link"?
Dal prompt di Matlab eseguendo >> mex -setup ottengo:
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in ~/.matlab/R2007a and used by default for 'mex'. An options
file in the current working directory or specified on the command line
overrides the default options file in ~/.matlab/R2007a.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
The options files available for mex are:
1: /Applications/MATLAB74/bin/f90opts.sh :
Template Options file for building Fortran 90 MEX-files via the system ANSI compiler
2: /Applications/MATLAB74/bin/gccopts.sh :
Template Options file for building gcc MEX-files
3: /Applications/MATLAB74/bin/mexopts.sh :
Template Options file for building MEX-files via the system ANSI compiler
0: Exit with no changes
Enter the number of the compiler (0-3):
Cosa devo scegliere?
Grazie. :)
Ho installato sul mio ibook Matlab e un tool che si chiama truetime che gira sotto simulink. Ora credo che dovrei dire a Matlab di utilizzare un compilatore C++. Voi che compilatore ci avete messo? E come si fa a fare questo "link"?
Dal prompt di Matlab eseguendo >> mex -setup ottengo:
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in ~/.matlab/R2007a and used by default for 'mex'. An options
file in the current working directory or specified on the command line
overrides the default options file in ~/.matlab/R2007a.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
The options files available for mex are:
1: /Applications/MATLAB74/bin/f90opts.sh :
Template Options file for building Fortran 90 MEX-files via the system ANSI compiler
2: /Applications/MATLAB74/bin/gccopts.sh :
Template Options file for building gcc MEX-files
3: /Applications/MATLAB74/bin/mexopts.sh :
Template Options file for building MEX-files via the system ANSI compiler
0: Exit with no changes
Enter the number of the compiler (0-3):
Cosa devo scegliere?
Grazie. :)