Initializing help system before first use

mos2exe

Purpose
Compile a mosel file to produce an executable
Synopsis
procedure mos2exe(srcs:list of string, dst:string)
procedure mos2exe(src:string, dst:string)
Arguments
src 
Source file
srcs 
Source file followed by its dependencies
dst 
Destination file name (can be a directory, extension may be omitted)
Example
 mos2exe("test.mos",".")
   ! -> mosel comp -o test.bim test.mos
   ! -> CP test.bim deploy.csrc:test.c
   ! ... system-dependent compilation commands ...
 runcmd("test")
   ! -> test
   ! ... output from running test.mos ...
Further information
1. This functionality requires the availability of a C compiler.
2. The operation will be performed only if either of the srcs files or src is newer than the destination file.
3. The destination file will be deleted if the variable runmode is set to "clean".
4. Any execution error will cause a program termination if exitonfail is true.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.