MATLAB COMPILER RELEASE NOTES User's Guide Page 212

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 211
mcc
7-34
Conflicting Options on Command Line
If you use conflicting options, the Compiler resolves them from left to right,
with the rightmost option taking precedence. For example, using the
equivalencies in Table 7-1, Macro Options, on page 7-31,
mcc -m -W none test.m
is equivalent to
mcc -t -W main -L C -T link:exe -h -W none test.m
In this example, there are two conflicting -W options. After working from left to
right, the Compiler determines that the rightmost option takes precedence,
namely,
-W none, and the Compiler does not generate a wrapper.
Note Macros and regular options may both affect the same settings and may
therefore override each other depending on their order in the command line.
Handling Full Pathnames
IfyouspecifyafullpathnametoanM-fileonthemcc command line, the
Compiler:
1 Breaks the f ull name int o the corresponding path- and filenames (< path>
and <
file>).
2 Replaces the full pathname i n the argument list with -I <path> <file>”.
For example,
mcc -m /home/user/myfile.m
would be treated as
mcc -m -I /home/user myfile.m
In rare situations, this behavior can lead to a potential source of confusion. For
example,suppose youhavetwodifferent M-files thatarebothnamed
myfile.m
and they reside in /home/user/dir1 and /home/user/dir2. The command
mcc -m -I /home/user/dir1 /home/user/dir2/myfile.m
Page view 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 263 264

Comments to this Manuals

No comments