Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with using of CPropertySheet Pin
ssm198411910-Mar-09 16:38
ssm198411910-Mar-09 16:38 
AnswerRe: Problem with using of CPropertySheet Pin
«_Superman_»10-Mar-09 18:58
professional«_Superman_»10-Mar-09 18:58 
GeneralRe: Problem with using of CPropertySheet Pin
ssm198411910-Mar-09 19:36
ssm198411910-Mar-09 19:36 
GeneralRe: Problem with using of CPropertySheet Pin
«_Superman_»10-Mar-09 19:37
professional«_Superman_»10-Mar-09 19:37 
GeneralRe: Problem with using of CPropertySheet Pin
ssm198411910-Mar-09 20:10
ssm198411910-Mar-09 20:10 
GeneralRe: Problem with using of CPropertySheet Pin
David Crow11-Mar-09 3:07
David Crow11-Mar-09 3:07 
GeneralRe: Problem with using of CPropertySheet Pin
ssm198411913-Mar-09 16:44
ssm198411913-Mar-09 16:44 
QuestionCompiler MATLAB file to C++ Pin
deserterize10-Mar-09 10:51
deserterize10-Mar-09 10:51 
I want to use the MATLAB compiler to build a C++ programe
and I use a demo to try the compilation
However, there are error when I using the command

************************************************************************
mcc -W cpplib:libmyadd -T link:lib myadd.m
************************************************************************



The error msg is:

************************************************************************
Compiler version: 4.8 (R2008a)
Processing G:\MATLAB\R2008a\toolbox\matlab\mcc.enc
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.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 38 path items.
Begin validation of MEX files: Wed Mar 11 04:09:51 2009
Validating 'G:\MATLAB\R2008a\toolbox\compiler\deploy\deploywhich.mexw32'.
No conflicting M-file found.
Validating 'G:\MATLAB\R2008a\toolbox\compiler\deploy\readline.mexw32'.
No conflicting M-file found.
End validation of MEX files: Wed Mar 11 04:09:51 2009
Deleting 2 temporary MEX authorization files.
Removing: 'C:\DOCUME~1\DESERT~1\LOCALS~1\Temp\mathworks_tmp_4652_4530_4652.auth'.
Removing: 'C:\DOCUME~1\DESERT~1\LOCALS~1\Temp\mathworks_tmp_4652_7210_4652.auth'.
Parsing file "G:\FYP\M-file\myadd.m"
(Referenced from: "Compiler Command Line").
Parsing file "G:\MATLAB\R2008a\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "G:\MATLAB\R2008a\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "libmyadd.h".
Generating file "libmyadd.cpp".
Generating file "libmyadd.exports".
Generating file "G:\FYP\M-file\readme.txt".
Generating file "libmyadd_mcc_component_data.c".
Executing command: mbuild -O -v -output "libmyadd" "libmyadd.cpp" "libmyadd.exports" "libmyadd_mcc_component_data.c" -link shared
This is mbuild Copyright 1984-2004 The MathWorks, Inc.

-> Default options filename found in C:\Documents and Settings\Deserterize\Application Data\MathWorks\MATLAB\R14
----------------------------------------------------------------
-> Options file = C:\Documents and Settings\Deserterize\Application Data\MathWorks\MATLAB\R14\compopts.bat
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS = -c -Zp8 -G5 -GX -W3 -nologo -DMSVC -DIBMPC -DMSWIND
OPTIMFLAGS = -O2 -DNDEBUG
DEBUGFLAGS = -Zi -Fd"libmyadd.pdb"
arguments =
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"G:\MATLAB7\\extern\lib\win32\microsoft\msvc60" /nologo mclmcrrt.lib /dll /implib:"libmyadd.lib" /def:_lib1143.def
LINKFLAGSPOST =
Name directive = "/out:libmyadd.dll"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo ".res"
-> Resource Linker =
----------------------------------------------------------------


--> "cl -c -Zp8 -G5 -GX -W3 -nologo -DMSVC -DIBMPC -DMSWIND /Folibmyadd.obj -IG:\MATLAB7\\extern\include -IG:\MATLAB7\\simulink\include -O2 -DNDEBUG libmyadd.cpp"

cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '-G5'
libmyadd.cpp
libmyadd.cpp(8) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory

G:\MATLAB7\\BIN\WIN32\MEX.PL: Error: Compile of 'libmyadd.cpp' failed.


Error: An error occurred while shelling out to mbuild (error code = 255).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
************************************************************************



and my M-file is:

************************************************************************
function [y,z] = myadd(a, b)
% dummy function, just to demonstrate the idea
y = a+b;
z = a+2*b;
end
*************************************************************************


So, what is the problem when I using the mcc function?
and What should I do to solve this problem??Thanks
AnswerRe: Compiler MATLAB file to C++ Pin
Yusuf10-Mar-09 11:28
Yusuf10-Mar-09 11:28 
GeneralRe: Compiler MATLAB file to C++ Pin
CPallini10-Mar-09 11:47
mveCPallini10-Mar-09 11:47 
GeneralRe: Compiler MATLAB file to C++ Pin
deserterize11-Mar-09 11:55
deserterize11-Mar-09 11:55 
QuestionMemory Usage of Application. Pin
ERLN10-Mar-09 9:56
ERLN10-Mar-09 9:56 
AnswerRe: Memory Usage of Application. Pin
led mike10-Mar-09 10:18
led mike10-Mar-09 10:18 
AnswerRe: Memory Usage of Application. Pin
David Crow10-Mar-09 10:31
David Crow10-Mar-09 10:31 
GeneralRe: Memory Usage of Application. Pin
led mike10-Mar-09 11:00
led mike10-Mar-09 11:00 
GeneralRe: Memory Usage of Application. Pin
David Crow10-Mar-09 16:47
David Crow10-Mar-09 16:47 
Questionkeyboard control Pin
anuj jamwal10-Mar-09 9:36
anuj jamwal10-Mar-09 9:36 
AnswerRe: keyboard control Pin
led mike10-Mar-09 10:22
led mike10-Mar-09 10:22 
QuestionExceptions, Throwing, Handling Pin
ScotDolan10-Mar-09 9:12
ScotDolan10-Mar-09 9:12 
AnswerRe: Exceptions, Throwing, Handling Pin
Eytukan10-Mar-09 9:17
Eytukan10-Mar-09 9:17 
AnswerRe: Exceptions, Throwing, Handling Pin
Eytukan10-Mar-09 9:24
Eytukan10-Mar-09 9:24 
GeneralRe: Exceptions, Throwing, Handling Pin
ScotDolan10-Mar-09 9:47
ScotDolan10-Mar-09 9:47 
GeneralRe: Exceptions, Throwing, Handling Pin
Eytukan10-Mar-09 19:48
Eytukan10-Mar-09 19:48 
AnswerRe: Exceptions, Throwing, Handling Pin
Joe Woodbury10-Mar-09 12:58
professionalJoe Woodbury10-Mar-09 12:58 
RantRe: Exceptions, Throwing, Handling Pin
Iain Clarke, Warrior Programmer10-Mar-09 23:24
Iain Clarke, Warrior Programmer10-Mar-09 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.