how to run hello.cpp without the link error?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Error: Link of 'hello.mexw64' failed.
hello.cpp just contains the code:
#include <iostream>
using namespace std;
int main() { cout<<"Hello sow..!"; return 0; }
0 Kommentare
Antworten (1)
James Tursa
am 26 Feb. 2016
Bearbeitet: James Tursa
am 26 Feb. 2016
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 Kommentare
Jan
am 28 Feb. 2016
Please format your code using the "{} Code" button and post the complete error message. Don't you see that the code is not readable?
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!