|
From: Thomas B. <tzb...@gm...> - 2015-04-21 16:19:16
|
mex hello.c C:\Users\THOMAS~1\AppData\Local\Temp\mex_qlFvDw\hello.obj:hello.c:(.text+0x9): undefined reference to `mexPrintf' collect2.exe: error: ld returned 1 exit status link command: gcc -shared C:\Users\THOMAS~1\AppData\Roaming\MATHWO~1\MATLAB\R2015a\gnumex\mex.def -o hello.mexw64 -LC:\Users\THOMAS~1\AppData\Roaming\MATHWO~1\MATLAB\R2015a\gnumex -s C:\Users\THOMAS~1\AppData\Local\Temp\mex_qlFvDw\hello.obj -llibmx -llibmex -llibmat C:\PROGRA~1\MATLAB\R2015A\BIN\MEX.PL: Error: Link of 'hello.mexw64' failed. Unable to complete successfully. On Tue, Apr 21, 2015 at 11:00 AM, Thomas Bernhardt <tzb...@gm...> wrote: > Hello, > > I am trying to use Matlab's mex function to compile my c code. I believe > I have setup it properly to use mingw to compile. However when I run mex > hello.c I get an error saying: undefined reference to `mexPrintf'. Can > anyone help me solve this issue? > > Thomas Bernhardt > |