Using the MX Matrix Library in General C Code
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello. I'm trying to create a MEX filte. In order to debug the code I'm trying to compile it in Visual Studio.
I'm replacing the header with 'void main'. For some reason something is going wrong with using 'mex.h'.
How could I use the MX library in a general C / C++ code?
Thank You.
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 7월 7일
"void main" need not be accepted as the signature of the main routine of a C program. main() is defined to return an integer in C, so telling C that your "main" routine has a void return is going to generate something does not have the proper datatypes for the required main program.
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!