how to run hello.cpp without the link error?
이전 댓글 표시
Error: Link of 'hello.mexw64' failed.
hello.cpp just contains the code:
#include <iostream>
using namespace std;
int main() { cout<<"Hello sow..!"; return 0; }
답변 (1개)
James Tursa
2016년 2월 26일
편집: James Tursa
2016년 2월 26일
You need to have the gateway function mexFunction in your source code. See this link and the examples listed there:
Once you have that set up properly, and the file is in the current directory, then all you do is enter this at the command prompt:
mex hello.cpp
댓글 수: 2
sowjanya boddeti
2016년 2월 28일
Jan
2016년 2월 28일
Please format your code using the "{} Code" button and post the complete error message. Don't you see that the code is not readable?
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!