From: John Ha on 1 Jun 2010 21:39 I have been learning "MATLAB Interface to Shared Libraries" in External Interfaces. To get better understanding, I compiled the shrlibsample.c in "matlabroot//MATLAB_R2010a.app/extern/examples/shrlib/" in the MATLAB with mex function as follows: >>mex shrlibsample.c Then, I could have "shrlibsample.mexmaci64" as I expected. However, when I load the shared library, shrlibsample.mexmaci64, into MATLAB with the loadlibrary function, all of the functions in shrlibsample.c were not recognized by the MATLAB as I posted below. In "matlabroot//MATLAB_R2010a.app/extern/examples/shrlib/", there is a precompile file "shrlibsample.mexmaci64" which does not have any problem. I believe I made mistakes in the compile with mex function. Please help me out. I did the experiment in the environment: Machine: iMac, MATLAB version: 2010a and 2009b (both have the same problem) I appreciate your helps in advance. -John >> loadlibrary('shrlibsample', hfile) Warning: The function 'multDoubleArray' was not found in the library > In loadlibrary at 461 Warning: The function 'addMixedTypes' was not found in the library > In loadlibrary at 461 Warning: The function 'addDoubleRef' was not found in the library > In loadlibrary at 461 Warning: The function 'stringToUpper' was not found in the library > In loadlibrary at 461 Warning: The function 'readEnum' was not found in the library > In loadlibrary at 461 Warning: The function 'addStructFields' was not found in the library > In loadlibrary at 461 Warning: The function 'multDoubleRef' was not found in the library > In loadlibrary at 461 Warning: The function 'addStructByRef' was not found in the library > In loadlibrary at 461 Warning: The function 'allocateStruct' was not found in the library > In loadlibrary at 461 Warning: The function 'deallocateStruct' was not found in the library > In loadlibrary at 461 Warning: The function 'multiplyShort' was not found in the library > In loadlibrary at 461 Warning: The function 'print2darray' was not found in the library > In loadlibrary at 461 Warning: The function 'getListOfStrings' was not found in the library > In loadlibrary at 461 Warning: The function 'exportedDoubleValue' was not found in the library > In loadlibrary at 461 Warning: The function 'printExportedDoubleValue' was not found in the library > In loadlibrary at 461
|
Pages: 1 Prev: Mexing with gfortran 4.4 on Snow Leopard Next: PushButton on GUI |