Matlab production dll
1. Attention MATTERS:
① code cannot have Cd,addpath ().
2. Steps
① command Line input: Deploytool
The following window appears: (Figure slightly ...) )
Select Library Compile.
② Select the MATLAB code file to compile
Select the C + + Shared Library. Click the + number to add the MATLAB code to be edited. After adding, the following will appear to compile the MATLAB code, the use of other code (MATLAB automatic detection, may have to wait a few 10 seconds):
Note: If the code that you want to use is compiled directly, you will get an error when calling the DLL in later C + +, and the file cannot be found.
③ Click on the top right package (green tick)
Then there appears the start of the compilation interface: (Figure slightly ... )
Note: There are three parts, wait a few minutes, three parts are tick, indicating the success of the compilation. Generate the following:
in the folder For_redistribution_files_only, there are dll,.h,lib three files that we need to use.
Interaction between Mwarray,matlab and C + + parameters: http://www.ilovematlab.cn/thread-157285-1-1.html