According to the documentation for Release 13 of MATLAB COM Builder and MATLAB Excel Builder, the Borland C++ Builders, versions 4, 5, and 6, are all supported. However, when I try to build my component or any of the example components using one of the Borland C++ Builder compilers, I receive the following Error Dialog:
Error using ==> comtool (build) Error: An error occurred while shelling out to mbuild (error code = 1). Unable to build executable.
I also receive the following build error:
Microsoft (R) MIDL Compiler Version 5.01.0164 Copyright (c) Microsoft Corp 1991-1997. All rights reserved. midl : command line warning MIDL1009 : unknown argument ignored "D:/matlab6p5/work/magicdemo/src/magicdemo_idl.idl" Processing Files/Borland/CBuilder6/include/idl midl : command line error MIDL1003 : error returned by the C preprocessor (128) MBUILD.BAT: Error: IDL compile of '<componentname>_idl.idl' failed.
Best Answer