Prev: hiii frnds
Next: Draw major and minor axes on ellipse
From: Farrukh on 9 Apr 2010 06:04 Hi everyone, I tried to build c shared library example given on http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/f2-972343.html but it shows error when i run mcc -B csharedlib:libmatrix addmatrix.m multiplymatrix.m eigmatrix.m -v The error looks like followings --------------- c:\programme\matlab\r2009a\extern\include\mclmcr.h(1662) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'libmatrix.c' failed. Error: An error occurred while shelling out to mbuild (error code = 9). Unable to build executable. ??? Error using ==> mcc Error executing mcc, return status = 1 (0x1). ------------------------- Please help me regards,
From: Farrukh on 9 Apr 2010 11:34 further details of error of mcc -W cpplib:libmatrixp -T link:lib addmatrix.m multiplymatrix.m eigmatrix.m -v is below Compiler version: 4.10 (R2009a) Processing include files... 2 item(s) added. Processing directories installed with MCR... The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 2 item(s) added. Generating MATLAB path for the compiled application... Created 41 path items. Begin validation of MEX files: Fri Apr 09 17:28:41 2010 End validation of MEX files: Fri Apr 09 17:28:41 2010 Parsing file "C:\Programme\MATLAB\R2009a\cshared_mfile\addmatrix.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Programme\MATLAB\R2009a\cshared_mfile\multiplymatrix.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Programme\MATLAB\R2009a\cshared_mfile\eigmatrix.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Programme\MATLAB\R2009a\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Programme\MATLAB\R2009a\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Deleting 0 temporary MEX authorization files. Generating file "libmatrixp.h". Generating file "libmatrixp.cpp". Generating file "libmatrixp.exports". Generating file "C:\Programme\MATLAB\R2009a\cshared_mfile\readme.txt". Generating file "libmatrixp_mcc_component_data.c". Executing command: mbuild -O -v -output "libmatrixp" "libmatrixp.cpp" "libmatrixp.exports" "libmatrixp_mcc_component_data.c" -link shared This is mbuild Copyright 1984-2006 The MathWorks, Inc. -> Default options filename found in C:\Dokumente und Einstellungen\muhr\Anwendungsdaten\MathWorks\MATLAB\R2009a ---------------------------------------------------------------- -> Options file = C:\Dokumente und Einstellungen\muhr\Anwendungsdaten\MathWorks\MATLAB\R2009a\compopts.bat -> COMPILER = lcc -> Compiler flags: COMPFLAGS = -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2009a\sys\lcc\include" -noregistrylookup OPTIMFLAGS = -DNDEBUG DEBUGFLAGS = -g4 arguments = Name switch = -Fo -> Pre-linking commands = -> LINKER = lcclnk -> Link directives: LINKFLAGS = -dll "C:\DOKUME~1\MUHR\LOKALE~1\TEMP\MBUILD~3\templib.def" -tmpdir "." -L"C:\PROGRA~1\MATLAB\R2009a\sys\lcc\lib" -libpath "C:\PROGRA~1\MATLAB\R2009a\extern\lib\win32\lcc" C:\DOKUME~1\MUHR\LOKALE~1\TEMP\MBUILD~3\templib_stub.obj LINKFLAGSPOST = mclmcrrt.lib Name directive = -o "libmatrixp.dll" File link directive = Lib. link directive = Rsp file indicator = @ -> Resource Compiler = -> Resource Linker = ---------------------------------------------------------------- --> lcc -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2009a\sys\lcc\include" -noregistrylookup -FoC:\DOKUME~1\MUHR\LOKALE~1\TEMP\MBUILD~3\libmatrixp.obj -IC:\PROGRA~1\MATLAB\R2009a\extern\include -IC:\PROGRA~1\MATLAB\R2009a\simulink\include -DNDEBUG libmatrixp.cpp Error libmatrixp.cpp: 163 syntax error; found `void' expecting `;' Error libmatrixp.cpp: 163 missing parameter type Error libmatrixp.cpp: 163 syntax error; found `&' expecting `)' Error libmatrixp.cpp: 163 skipping `&' `a' `,' Error libmatrixp.cpp: 164 syntax error; found `const' expecting `{' Error libmatrixp.cpp: 164 redeclaration of `mwArray' previously declared at libmatrixp.cpp 163 Error libmatrixp.cpp: 164 syntax error; found `&' expecting `;' Error libmatrixp.cpp: 164 undeclared identifier `a1' Error libmatrixp.cpp: 164 illegal expression Warning libmatrixp.cpp: 164 Statement has no effect Error libmatrixp.cpp: 164 syntax error; found `mwArray' expecting `;' Error libmatrixp.cpp: 164 undeclared identifier `a2' Warning libmatrixp.cpp: 164 Statement has no effect Error libmatrixp.cpp: 164 syntax error; found `)' expecting `;' Error libmatrixp.cpp: 164 illegal statement termination Error libmatrixp.cpp: 164 skipping `)' Error libmatrixp.cpp: 166 undeclared identifier `a' Warning libmatrixp.cpp: 170 Statement has no effect Error libmatrixp.cpp: 170 syntax error; found `void' expecting `;' Error libmatrixp.cpp: 170 illegal statement termination Error libmatrixp.cpp: 170 skipping `void' Error libmatrixp.cpp: 170 illegal expression Error libmatrixp.cpp: 170 syntax error; found `nargout' expecting `)' Error libmatrixp.cpp: 170 too many errors C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'libmatrixp.cpp' failed. Error: An error occurred while shelling out to mbuild (error code = 9). Unable to build executable. ??? Error using ==> mcc Error executing mcc, return status = 1 (0x1). please help regards,
|
Pages: 1 Prev: hiii frnds Next: Draw major and minor axes on ellipse |