C-Mex Error: expected "..." or ","
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Lance Randall Gamier
 el 3 de Nov. de 2020
  
    
    
    
    
    Respondida: Walter Roberson
      
      
 el 3 de Nov. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

