all
I have test.m (Matlab source code) that implements the A () function; and the main.cpp file (will call A ()).
As you know, we can take the following steps:
use matlab to compile test.m (mcc -), will generate: test.dll, test.ctf, test.h.
copy the file test.dll and test.ctf, test.h to the VS2005 project. in main.cpp, call A () in test.dll.
But when I release the program, I will also pack the test.dll file together.
And in another way, can I use VS2005 to compile both test.m and main.cpp, which will only generate main.dll, main.ctf, main.h .. (I will only release main.dll, main. CTF, main.h,).
this means that I am compiling test.m in main.cpp.
And I tried this way, in VS2005 ---> Build Events → pre-Build Event → command line: mcc C -w lib: test test.m
and it will generate an average test.ctf file (only test.ctf, no test.dll). But I do not know how to compile test.ctf in main.cpp?
Can someone help me?
thank.
source
share