Re: MATLAB Compiler 4.6 Problems
- From: rpereira <rpere021@xxxxxxxxxxxxxx>
- Date: Tue, 26 Jun 2007 16:44:40 -0400
Nick, the compiler Lcc C version 2.4.1 (included with MATLAB). This
is a C only
compiler; it does not work with C++, and mwArray is a C++ utility.
You probe with Microsoft Visual C/C++ (MSVC) Versions 6.0, 7.1, and
8.0.
Nick wrote:
.
When I try to compile a file from MATLAB into a stand alone C++
library using the command:
mcc -W cpplib:libmatrix -T compile:lib -v addmatrix.m
multiplymatrix.m eigenvalfn.m
I get the error message:
Error libmatrix.cpp: 146 syntax error; found `void' expecting `;'
Error libmatrix.cpp: 146 missing parameter type
Error libmatrix.cpp: 146 syntax error; found `&' expecting `)'
Error libmatrix.cpp: 146 skipping `&' `a' `,'
Error libmatrix.cpp: 147 syntax error; found `const' expecting `{'
Error libmatrix.cpp: 147 redeclaration of `mwArray' previously
declared at libmatrix.cpp 146
Error libmatrix.cpp: 147 syntax error; found `&' expecting `;'
Error libmatrix.cpp: 147 undeclared identifier `in1'
Error libmatrix.cpp: 147 illegal expression
Warning libmatrix.cpp: 147 Statement has no effect
Error libmatrix.cpp: 147 syntax error; found `mwArray' expecting
`;'
Error libmatrix.cpp: 147 undeclared identifier `in2'
Warning libmatrix.cpp: 147 Statement has no effect
Error libmatrix.cpp: 147 syntax error; found `)' expecting `;'
Error libmatrix.cpp: 147 illegal statement termination
Error libmatrix.cpp: 147 skipping `)'
Error libmatrix.cpp: 149 undeclared identifier `a'
Warning libmatrix.cpp: 153 Statement has no effect
Error libmatrix.cpp: 153 syntax error; found `void' expecting `;'
Error libmatrix.cpp: 153 illegal statement termination
Error libmatrix.cpp: 153 skipping `void'
Error libmatrix.cpp: 153 illegal expression
Error libmatrix.cpp: 153 syntax error; found `nargout' expecting
`)'
Error libmatrix.cpp: 153 too many errors
C:\PROGRA~1\MATLAB\R2007A\BIN\MEX.PL: Error: Compile of
'libmatrix.cpp' failed.
Error: An error occurred while shelling out to mbuild (error code =
2).
Unable to build executable.
??? Error executing mcc, return status = 1.
Does anyone know how I can fix this issue?
Thanks.
-Nick
- Prev by Date: Re: how to remove looping to update values of matrices
- Next by Date: Is This Optimization Objective Function Feasible?
- Previous by thread: mexing on Mac OS X with g95/gfortran
- Next by thread: Is This Optimization Objective Function Feasible?
- Index(es):
Relevant Pages
|