InterSystems FAQ rubric
To compile class routines including the mapped modifier, specify the compiler modifier "/mapped=1" or "/mapped". For example, do the following:
[Example 1] Get the class list and compile
do $System.OBJ.GetClassList(.list,"/mapped")
// build your classes starting from .list
do $System.OBJ.Compile(.list) [Example 2] Compile all classes
do $system.OBJ.CompileAll("/mapped") 
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
