C Shared Library Example:: Libraries (MATLAB Compiler)

C Shared Library Example:: Libraries (MATLAB Compiler)

Post by Ardhendu B » Fri, 26 Nov 2004 03:18:22


Hi,
I compiled the "addmatrix.m, multiplymatrix.m, eigmatrix.m" from
"C:\MATLAB701\extern\examples\compiler\" directory as given in the
README file.

I use the command "mcc -B csharedlib:libmatrix addmatrix.m
multiplymatrix.m eigmatrix.m -v" as given in the "C Shared Library
Example" in "help". There is no file "libmatrix.dll" and
"libmatrix.lib" created after compilation. All other files
(.c,.h,.exports, .ctf) are created.

Without "libmatrix.lib" the "matrixdriver.c" is giving the linking
error.

Could you plese help me in this regrad.

I'm using MATLAB Compiler 4.1.1

Thanks,
Ardhendu
 
 
 

C Shared Library Example:: Libraries (MATLAB Compiler)

Post by Peter Web » Sun, 19 Dec 2004 01:55:21

Try this command instead:


This is what the csharedlib:libmatrix bundle file should expand to; by
issuing this command explicitly, and including the -v switch, you'll be able
to see if any error messages are generated during the compilation.