The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: can not run mex function
Replies: 1   Last Post: Feb 22, 2013 6:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
James Tursa

Posts: 2,326
Registered: 8/5/09
Re: can not run mex function
Posted: Feb 22, 2013 6:58 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"ammar al jodah" wrote in message <kg8l1c$775$>...
> hello i have this error when want to compile c-file on MATLAB 2011b , i use WIN 7 64 bit, any help will be appreciated:

> >> mex sfun_time.c -lmwlapack -lmwblas
> C:\PROGRA~1\MATLAB\R2011B\BIN\MEX.PL: Error: Compile of 'sfun_time.c' failed.
> Error using mex (line 206) Unable to complete successfully.

Try verbose mode to get a better idea of the failure:

mex -v sfun_time.c -lmwlapack -lmwblas

Also, you may need to include the explicit path+filename for the lapack and blas libraries. E.g., using the function form:

mex('-v','sfun_time.c','the full pathname & filename of mwlapack.lib','same for mwblas.lib')

James Tursa

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.