Matlab create dll error

2 ビュー (過去 30 日間)
Ruixue Zhang
Ruixue Zhang 2012 年 9 月 7 日
Hi all,
I'm trying to create a C shared library from .m file and I succeed with mex -setup & mbuild -setup. But when I try the mcc operation:
mcc -W lib:dlltest -T link:lib AinsideB.m
I meet these problems:
LINK : fatal error LNK1104: cannot open file 'C:\USERS\RUIXUEZ\APPDATA\LOCAL\TEMP\MBE499~1\templib.def'
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Link of 'dlltest.dll' failed.
Error: An error occurred while shelling out to mbuild (error code = 2). Unable to build executable (specify the -v option for more information). Error using mcc Error executing mcc, return status = 1 (0x1).
Do you have any idea about this problem?
My MATLAB version: R2012a
MATLAB compiler: 4.17
Operating system: 64-bit windows 7
C compiler: Microsoft Visual Studio 2010
Thanks!

回答 (1 件)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012 年 9 月 7 日
From the 12a release notes for MATLAB Compiler - Support Updates for Microsoft Visual Studio Versions:
The following changes to Microsoft® Visual Studio® support apply for R2012a and R2012b.
Microsoft Visual Studio 2010 Express, for 32-bit or 64-bit architectures
What Happens When You Attempt to Use This Version in R2012a - Not Available
What Happens When You Attempt to Use This Version in R2012b - Not Available
  1 件のコメント
Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012 年 9 月 7 日
編集済み: Rolfe Dlugy-Hegwer 2012 年 9 月 7 日
Could you try running mcc with the -v option, and then share the information?
Here are two similar cases:
Please let us know how this works out for you.

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

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by