I have installed MINGW64 compiler and linked it to my matlab. So on running the command "mex -setup" i get the output as:
To choose a different language, select one from the following: mex -setup C++ mex -setup FORTRAN
Now when i try to compile the file "yprime.c" (generated using copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'),'.','f') command as given in the documentation ) using the command "mex yprime.c" i get the following erroes
Building with 'MinGW64 Compiler (C)'. Error using mex C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x26): undefined reference to `mexErrMsgIdAndTxt' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x31): undefined reference to `mxGetM' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x3e): undefined reference to `mxGetN' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x4b): undefined reference to `mxIsDouble' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x5a): undefined reference to `mxIsComplex' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x83): undefined reference to `mexErrMsgIdAndTxt' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x97): undefined reference to `mxCreateDoubleMatrix_700' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0xa4): undefined reference to `mxGetPr' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0xb0): undefined reference to `mxGetPr' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0xbb): undefined reference to `mxGetPr' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x1eb): undefined reference to `mexErrMsgIdAndTxt' C:\Users\NaPsTeR\AppData\Local\Temp\mex_25702802873875_13176\yprime.obj:yprime.c:(.text+0x21c): undefined reference to `mexWarnMsgIdAndTxt' collect2.exe: error: ld returned 1 exit status
What is the cause of this error??? what should i do to remove this??