MATLAB C/C++ Graphics Library | ![]() ![]() |
Compiling and Linking Without mbuild
For graphics applications, you must use the MATLAB Compiler to generate C or C++ source code modules. The graphics library does not support the direct coding of graphics applications. You can, however, perform the compilation and linking of your source modules without using mbuild
.
To determine the libraries you need to link with, use the mbuild
command with the -n
option. When you specify this option, mbuild
sets up the compile and link command lines necessary to build a stand-alone application but does not execute the commands. View the output of mbuild -n
to determine the list of libraries you must link your application with and the order in which you must specify them.
You can also specify this mbuild
option on the MATLAB Compiler command line by specifying -M
option.
mcc -M -n -B sgl lorenz.m
![]() | Running the MATLAB Compiler Outside MATLAB | Changes in Run-Time Behavior and Appearance | ![]() |