Difference between revisions of "How To Use the MATLAB Compiler"

From ECE Information Technology Services
Jump to navigationJump to search
(New Page)
 
 
Line 6: Line 6:
 
is ''gcc''. There is a ''cc'' in ''/usr/ucb/cc'' but it is not Sun's C compiler.
 
is ''gcc''. There is a ''cc'' in ''/usr/ucb/cc'' but it is not Sun's C compiler.
 
To make sure that Sun's C compiler is found by the Matlab compiler, add the
 
To make sure that Sun's C compiler is found by the Matlab compiler, add the
following to your ''.cshrc.solaris'' file:
+
following to your ''.cshrc.solaris'' file (for Solaris OS only):
  
 
<pre>
 
<pre>
 
set path=(/usr/local/applic/WorkShop6.2/SUNWspro/bin $path)  
 
set path=(/usr/local/applic/WorkShop6.2/SUNWspro/bin $path)  
 
</pre>
 
</pre>

Latest revision as of 08:30, 26 March 2013


The MATLAB compiler invokes the command cc to compile C code. The proper cc command is not in the standard path as the normal compiler on the system is gcc. There is a cc in /usr/ucb/cc but it is not Sun's C compiler. To make sure that Sun's C compiler is found by the Matlab compiler, add the following to your .cshrc.solaris file (for Solaris OS only):

set path=(/usr/local/applic/WorkShop6.2/SUNWspro/bin $path)