Compiler error in 2014a

4 ビュー (過去 30 日間)
Christopher Hall
Christopher Hall 2014 年 6 月 12 日
コメント済み: Madhura Suresh 2014 年 6 月 17 日
I am moving my code development to a new (x64) machine, and also upgrading to 2014a. I have hit a stumbling block in running the deployment tool. The console messages are copied below. A quick search for 'hwconnectinstaller' has not thrown any light on the issue. Can anyone help?
Thanks
>> mbuild -setup
MBUILD configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++ -client MBUILD
mex -setup FORTRAN -client MBUILD
>> deploytool
Undefined variable "hwconnectinstaller" or class "hwconnectinstaller.PackageInstaller".
Error in matlab.depfun.internal.requiredSupportPackages (line 17)
pkgInstaller = hwconnectinstaller.PackageInstaller;
Error in matlab.depfun.internal.filesAndSupportPackages (line 17)
depsupportpackagelist = matlab.depfun.internal.requiredSupportPackages(depfileslist,
depproductname);
>>
  2 件のコメント
Christopher Hall
Christopher Hall 2014 年 6 月 17 日
Thanks for your help Madhura. You're right. If you ignore that rather terminal looking error message, the build and package functions work regardless.
Do you know if that error will go away in the next release?
I have a related question about compiling for a 32 bit target machine... I can use 'deploytool' from a windows command line to build the 64 bit version of the program, but when I add the '-win32' argument to the same command it returns 'Unable to find a suitable install area'. Any ideas?
Madhura Suresh
Madhura Suresh 2014 年 6 月 17 日
To build 32 bit executables on a 64 bit machine, it is recommended that you install 32 bit MATLAB also, on the 64 bit machine. They will be installed in separate locations, and you should build from the corresponding MATLAB. Its better not to use the -win32 flag, as it might cause inconsistencies.

サインインしてコメントする。

回答 (1 件)

Madhura Suresh
Madhura Suresh 2014 年 6 月 16 日
Even though this warning appears, you should be able to package your code into an executable successfully. If the code does not compile, there might be issues with your MATLAB code.

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by