Info

This question is closed. Reopen it to edit or answer.

LCC complie warning on simple function

1 view (last 30 days)
Adam
Adam on 21 May 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comment
Walter Roberson
Walter Roberson on 21 May 2013
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.

Answers (1)

Ying Liu
Ying Liu on 23 Sep 2015
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.

Products

Community Treasure Hunt

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

Start Hunting!