From: kk KKsingh on 21 Jul 2010 03:29 nfftmex.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ nfftmex.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ nfftmex.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ nfftmex.c:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ nfftmex.c:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ nfftmex.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ #include <complex.h> #include <string.h> #include <stdio.h> #include "nfft3.h" #include "infft.h" #include "nfft3util.h" #include "imex.h" /* #ifdef HAVE_MEXVERSION_C*/ /*#include "mexversion.c"*/ /* #endif*/ #define PLANS_MAX 100 /* maximum number of plans */ #define CMD_LEN_MAX 20 /* maximum length of command argument */ /* global flags */ #define NFFT_MEX_FIRST_CALL (1U << 0) unsigned short gflags = NFFT_MEX_FIRST_CALL; nfft_plan* plans[PLANS_MAX]; /* plans */ char cmd[CMD_LEN_MAX]; static inline void get_nm(const mxArray *prhs[], int *n, int *m) --LINE 43 { int t = nfft_mex_get_int(prhs[1],"nfft: Input argument N must be a scalar."); DM(if ((t < 0) || (t%2!=0)) mexErrMsgTxt("nfft: Input argument N must be non-negative.");) *n = t; t = nfft_mex_get_int(prhs[2],"nfft: Input argument M must be a scalar."); DM(if (t < 1) mexErrMsgTxt("nfft: Input argument M must be positive.");) *m = t; } I am not able to understand why line 43 is giving me error and what is this error
|
Pages: 1 Prev: MCMC and SDE Next: Paste 2D array into excel via activex |