mex ndfun on Matlab R2008b

2 views (last 30 days)
Sofiane KHARBECH
Sofiane KHARBECH on 5 Dec 2011
Hello,
I try to compile ndfun.c on my Matlab R2008b (v. 7.7)
The compilation results are as follows:
>> mex ndfun.c 'D:\Program Files\MATLAB\R2008b\extern\lib\win32\lcc\libmwlapack.lib'
Writing library for ndfun.mexw32
c:\docume~1\to\locals~1\temp\mex_vg~1\ndfun.obj .text: undefined reference to '_dgemm'
c:\docume~1\to\locals~1\temp\mex_vg~1\ndfun.obj .text: undefined reference to '_zgemm'
D:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of 'ndfun.mexw32' failed.
??? Error using ==> mex at 213
Unable to complete successfully.
So I don't know if there are some missed libraries on this used Matlab's version or if it's an other problem,
Thanks for help,
Regards
Sofiene EL KHARBECH

Accepted Answer

Jan
Jan on 5 Dec 2011
I assume, you need the BLAS libs also:
mex ndfun.c libmwlapack.lib libmwblas.lib

More Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!