Info

此问题已关闭。 请重新打开它进行编辑或回答。

LCC complie warning on simple function

2 次查看(过去 30 天)
Adam
Adam 2013-5-21
关闭: MATLAB Answer Bot 2021-8-20
Matlab 2011a internal complier
If you have a function:
SFunction(a,b,c,fn)
save(fn, 'a','b','c');
and you run:
mcc -v -B csharedlib:TKlib -C SFunction.m
should you expect the following output??
Executing command: ""C:\Program Files (x86)\MATLAB\R2011a\bin\mbuild" -O -v -output "TKlib" "TKlib.c" "TKlib.exports" -link shared"
String found where operator expected at (eval 78) line 1, near "'"if exist ''.$ENV{'"
(Missing operator before '.$ENV{'?)
String found where operator expected at (eval 79) line 1, near "'"if exist ''.$ENV{'"
(Missing operator before '.$ENV{'?)
String found where operator expected at (eval 80) line 1, near "'"if exist ''.$ENV{'"
(Missing operator before '.$ENV{'?)
String found where operator expected at (eval 81) line 1, near "'"if exist ''.$ENV{'"
(Missing operator before '.$ENV{'?)
if not, what would cause this??
Thanks...
  1 个评论
Walter Roberson
Walter Roberson 2013-5-21
What is being displayed is Perl code being executed as part of mbuild. I do not know the cause of the difficulty at the moment.

回答(1 个)

Ying Liu
Ying Liu 2015-9-23
I have the same thing: String found where operator expected at (eval 78) line 1, near "'"if exist ''.$ENV{'" (Missing operator before '.$ENV{'?) String found where operator expected at (eval 79) line 1, near "'"if exist ''.$ENV{'" (Missing operator before '.$ENV{'?) String found where operator expected at (eval 80) line 1, near "'"if exist ''.$ENV{'" (Missing operator before '.$ENV{'?) String found where operator expected at (eval 81) line 1, near "'"if exist ''.$ENV{'" (Missing operator before '.$ENV{'?)
Seems like this is neither error or warning. The dll and lib are being built. Not sure if they will affect anything.

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by