Using the MX Matrix Library in General C Code
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Royi Avital
il 5 Lug 2012
Commentato: Royi Avital
il 22 Apr 2020
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.
5 Commenti
Risposta accettata
Più risposte (1)
Walter Roberson
il 7 Lug 2012
"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.
Vedere anche
Categorie
Scopri di più su MATLAB Compiler in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!