Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Compilation on R2014a don't work
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have run the following command on R2010b and it works fine with the C++ wrapper (using VS C++ 2010):
setenv('TEMP', 'C:\TEMP'); % compile and export the DST Lite functions mcc -v -W cpplib:libmatlab -T link:lib Data_lite.m ... getLiteData.m... -v
However, when I run the command on R2014a, it does not work with the C++ wrapper. I can't figure out why. Can someone help? Thank you in advance.
댓글 수: 0
답변 (1개)
Nidhi Jain
2014년 7월 14일
Hi Sid,
There are chances that you are not using a third party supported compiler. The compiler could be working for R2010b but may be not for R2014a. You can check the list of supported compilers for R2014a here:
Make sure you have one of these installed.
If the compiler seems to be fine, provide the error message you are receiving and also the complete command you are trying to execute.
You can also use the "deploytool" to compile the MATLAB code into C++ shared library:
1. Enter "deploytool" on your MATLAB command window.
2. In the "Add Exported Function", add the .m file
3. Select "C++ shared library" option form the list to the left of "Add Exported Function"
4. Add any other files needed in the "Files required for your application to run" section.
4. Click "Package"
This will create 3 subfolders within the folder named as your .m file. The DLL will be present in the folder "for_redistribution_files_only" and "for_testing"
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!