How To Use the MATLAB Compiler

From ECE Information Technology Services
Jump to navigationJump to search


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)