Matlab C + + mixed record, matlab production DLL

Source: Internet
Author: User
Tags mixed

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.