User Ratings
Rate This Project
Login To Rate This Project
Featured Reviews
Highest Rated
for 64 bit minigw see tracker->bugs->Support Mingw-w64 or mailing list :[Gnumex-users] instructions for getting MinGW_w64 to work (64-bit compilation with OpenMP)
Lowest Rated
am using matlab R2013a am trying to compile my sample program but it showing the errors:
program is hello.c
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
mexPrintf("Hello world!\n");
return;
}
the error is
>> mex hello.cc
C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj:hello.cc:(.text+0x9): undefined reference to `mexPrintf'
collect2.exe: error: ld returned 1 exit status
link command: g++ -shared C:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex\mex.def -o hello.mexw64 -LC:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex -s C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj -llibmx -llibmex -llibmat
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'hello.mexw64' failed.
Error using mex (line 206)
Unable to complete successfully.
*********************************************
please help me how to fix this error.
User Reviews
-
Works well for me. Matlab 2015b
-
am using matlab R2013a am trying to compile my sample program but it showing the errors: program is hello.c #include "mex.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mexPrintf("Hello world!\n"); return; } the error is >> mex hello.cc C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj:hello.cc:(.text+0x9): undefined reference to `mexPrintf' collect2.exe: error: ld returned 1 exit status link command: g++ -shared C:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex\mex.def -o hello.mexw64 -LC:\Users\karna\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex -s C:\Users\karna\AppData\Local\Temp\mex_vPTczV\hello.obj -llibmx -llibmex -llibmat C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'hello.mexw64' failed. Error using mex (line 206) Unable to complete successfully. ********************************************* please help me how to fix this error.
-
A must have tool for every scholar.
-
for 64 bit minigw see tracker->bugs->Support Mingw-w64 or mailing list :[Gnumex-users] instructions for getting MinGW_w64 to work (64-bit compilation with OpenMP)
- Previous
- You're on page 1
- Next