MATLAB C/C++ Graphics Library    

Configuring the Graphics Library on PCs

To configure the graphics library on a PC running Microsoft Windows, run the
mbuild -setup command. You can run mbuild at the MATLAB prompt or in a DOS Command Prompt window.

mbuild uses options files to specify all the compile and link command line options necessary to create a stand-alone graphics application using a particular compiler. When you configure the graphics library, you determine which options file mbuild uses to create stand-alone applications.

When you run mbuild, you specify the name and version of the compiler you intend to use. mbuild locates the options file specific to that compiler, and creates a copy of it in your system's user profiles directory. From then on, whenever the MATLAB Compiler calls mbuild to invoke your C or C++ compiler, it uses this local copy of the options file.

This example illustrates how to specify a compiler running mbuild -setup on a PC. mbuild can also determine the name and location of your C or C++ compiler automatically. To link with the graphics library, answer yes (y) when mbuild prompts you.

When you press Enter, mbuild creates an options file in your C:\WINNT\Profiles directory.


 Configuring the MATLAB C/C++ Graphics Library Configuring the Graphics Library on UNIX Systems