User`s guide
iii
4
Stand-Alone Applications
Differences B etween MEX-Files
and Stand-Alone Applications .........................
4-3
Stand-AloneCApplications............................. 4-3
Stand-AloneC++Applications .......................... 4-4
Building Stand-Alone C/C++ Applications ............... 4-5
Overview............................................ 4-5
GettingStarted ...................................... 4-7
Building Stand-Alone Applications on UNIX ............. 4-8
ConfiguringforCorC++............................... 4-8
PreparingtoCompile.................................. 4-9
Verifyingmbuild .................................... 4-12
VerifyingtheMATLABCompiler ....................... 4-13
DistributingStand-AloneUNIXApplications ............. 4-14
AboutthembuildScript .............................. 4-15
Building Stand-Alone Applications on PCs ............. 4-16
ConfiguringforCorC++.............................. 4-16
PreparingtoCompile................................. 4-17
Verifyingmbuild .................................... 4-22
VerifyingtheMATLABCompiler ....................... 4-23
AboutthembuildScript .............................. 4-24
UsinganIDE ....................................... 4-24
DistributingStand-AloneWindowsApplications .......... 4-26
Building Shared Libraries ............................ 4-27
Troubleshooting ..................................... 4-28
Troubleshootingmbuild............................... 4-28
TroubleshootingtheCompiler.......................... 4-29
Coding with M-Files Only ............................. 4-31
Alternative Ways of Compiling M-Files ................. 4-35
Compiling MATLAB Provided M-Files Separately . . . . . . . . . 4-35
Compiling mrank.m and rank.m as Helper Functions . . . . . . 4-36