Compiling C + + files in matlab

Source: Internet
Author: User

Today, when I ran the code of the article "robust Object Tracking via sparsity-based collaborative Model", I found the following error occurred:

Found error due to vgg_kmiter this C-type function, so Baidu view first off knowledge, the original is not compiled vgg_kmiter caused by errors, and this point: because the high MATLAB version no longer support mxcreatescalardouble, and is changed to Mxcreatedoublescalar, so to all the CPP source files appear mxcreatescalardouble all replaced.

The process of compiling the CPP file is as follows, first enter the Mex-setup in the Comman window, you will get the following prompt:

Below we directly point y, select the compiler is, and finally get this result, we compiled the successful

At this point we only need the Mex Vgg_kmiter.cxx, if the cursor flashing indicates that the compilation was successful:

Compiling C + + files in matlab

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.