2023年11月29日发(作者:)

matlabcoff,matlab⽣成com组件时LINKfatalerrorLNK11。。

本帖最后由 Victorgc 于 2016-9-9 20:42 编辑

matlab⽣成com组件时LINK : fatal error LNK1123: 转换到 COFF 期间失败: ⽂件⽆效或损坏。前⾯编译器啥的都没问题。

ant:

mcc -W 'com:LMImatlab,Class1,1.0' -T link:lib -d 'E:MATLABMATLAB Production

ServerR2015abinLMImatlabfor_testing' -v 'class{Class1:E:MATLABMATLAB Production

ServerR2015abinLMImatlab.m}'

Compiler version: 6.0 (R2015a)

Dependency analysis by REQUIREMENTS.

... 正在查找环境变量 'ICPP_COMPILER12'...否。

... 正在查找注册表设置 'HKCUSOFTWAREMicrosoftVisualStudioSxSVS7' 否。

设置 PATH =

INCLUDE : -I"E:MATLABMATLAB Production ServerR2015abinLMImatlabfor_testing" -I"E:MATLABMATLAB

CMDLINE001 : midl /nologo /win64 -I"E:MATLABMATLAB Production ServerR2015aexterninclude" /D NDEBUG /out

CMDLINE100_0 : cl /c /GR /W3 /EHsc- -Zc:wchar_t /nologo /MT /O2 /Oy- /DNDEBUG /DMSVC /DIBMPC

64 bit Processing C:Program Files (x86)Microsoft

64 bit Processing C:Program Files (x86)Microsoft

Unable to build executable.上⾯是⽣成⽂件说明,求⼤神指导。