MATLAB: Do I get a warning message when I compile built-in files in the COM object using the MATLAB Builder for .NET 2.0 (R2006a)

comdotnettoolerrorlinkMATLAB Compilerwarning

I compile a COM object using the MATLAB Builder for .NET 2.0(R2006a). I include the following MATLAB files in the project.
1. A MATLAB file containing the code :
function foo
h = figure; plot(1:4,5:8)
print(h)
2. MATLAB built-in MATLAB file print.m
I compile the project using Microsoft Visual C++ 7.1 compiler.
In the builder log file, I get the following warning message:
Warning: "D:/Applications/MATLAB/R2006a/toolbox/matlab/graphics/private/render.p" is a Mex or P-file being referenced from "D:/Applications/MATLAB/R2006a/toolbox/matlab/graphics/print.m".
NOTE: A link error will be produced if a call to this function is made from stand-alone code.

Best Answer

This is expected behavior in MATLAB Builder for .NET 2.0 (R2006a).
The warning message produced is benign and will not affect the behavior of the created COM object.