Why am I unable to use a Borland compiler with MATLAB COM Builder 1.0 (R13) or MATLAB Excel Builder 1.1 (R13)?

4 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
As of Release R14, Borland compilers are not supported with MATLAB Builder for COM or MATLAB Builder for Excel. For previous releases, please read below for any possible workarounds:
Borland Compilers use MIDL compiler, which is distributed with Microsoft Compilers, to generate COM components. Thus, you will need to install the MIDL compiler separately. One way to get MIDL Compiler is to install a standard version of Microsoft Visual Studio or the Borland C++ Builder Professional or Enterprise editions.

More Answers (0)

Categories

Find more on COM Component Integration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!