|
From: Richard C. <r.c...@ed...> - 2015-04-22 07:27:06
|
Hello, Thomas, Looks like you're using Maltab 2015a. I don't know if this has been tested yet. Could you send the file: C:\Users\THOMAS~1\AppData\Roaming\MATHWO~1\MATLAB\R2015a\gnumex\mex.def Richard On 21/04/15 17:19, Thomas Bernhardt wrote: > 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 <http://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... <mailto: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 > > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > > > _______________________________________________ > Gnumex-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnumex-users > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |