| MATLAB Compiler | ![]() |
Using Pathnames
If you specify a full pathname to an M-file on the mcc command line, the MATLAB Compiler
path> and <file>).
-I <path> <file>". For example,
In rare situations, this behavior can lead to a potential source of confusion. For example, suppose you have two different M-files that are both named myfile.m and they reside in /home/user/dir1 and /home/user/dir2. The command
The Compiler finds the myfile.m in dir1 and compiles it instead of the one in dir2 because of the behavior of the -I option. If you are concerned that this might be happening, you can specify the -v option and then see which M-file the Compiler parses. The -v option prints the full pathname to the M-file during the dependency analysis phase.
Note
The Compiler produces a warning (specified_file_mismatch) if a file with a full pathname is included on the command line and the Compiler finds it somewhere else.
|
| Understanding a Macro Option | Using Bundle Files | ![]() |
© 1994-2005 The MathWorks, Inc.