Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Problem including svd, norm or qr in a win32 dll
Date: Sun, 2 Nov 2008 01:59:02 +0000 (UTC)
Organization: Isis Pharmaceuticals
Lines: 14
Message-ID: <gej1h6$g7b$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225591142 16619 172.30.248.35 (2 Nov 2008 01:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 2 Nov 2008 01:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1575589
Xref: news.mathworks.com comp.soft-sys.matlab:498474


I have recently installed R2008b with the Matlab compiler.  When creating win32 .dlls using mcc -B csharedlib:<dllname> <M-file>, everything works fine except that any call within an M-file to svd, qr, or norm (possibly any matfun?) does not work correctly from the .dll.  Whenever a call to svd, qr or norm is encountered in the dll file, a dialog appears entitled "mllapack.dll" with the message "The specified procedure could not be found.".  

Other standard built-in functions (e.g. abs, sqrt, strcmp,find,  etc.) appear to work fine, and full libraries are OK as long as they don't use matfun functions (as far as I can tell so far).  However, even a two-line function with no input or output like the one below fails when compiled into a .dll and accessed by an external program.

function test1()
    input=[4 5 6; 6 7 8; 10 2 5];
    test_out=svd(input);
return;

I'm just wondering if anyone else has run across this, and if so, if there's a solution?  It could be a configuration on my computer, but I can't figure it out.  I can't find any specific information in the documentation.

Thanks for any help / advice.

-Tom