C-Mex Error: expected "..." or ","
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Lance Randall Gamier
 am 3 Nov. 2020
  
    
    
    
    
    Beantwortet: Walter Roberson
      
      
 am 3 Nov. 2020
            The Code that I entered for a C++ Matlab Extension file is:
#include "mex.h"
void mexFunction(int nlhs,
        mxArray*plhs[]
        int nrhs,
        const mxArray*prhs[])
{       
    mexPrintf("Hello, mex!\n");
}
but it gives this error message:
error: expected ',' or '...' before 'int'
         int nrhs,
         ^
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
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!

