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

4 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 COM Component Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by