Loading Third party header files in matlab
Mostrar comentarios más antiguos
I am working on a project in which i have to load .dll files generated by C++ into MATLAB code. the project is to interface third party device via USB. My header file include third party header file and MATLAB is giving error that Cannot open thirdparty.h file...any idea how to solve this error? I am using loadlibrary command to load dll and header file.
3 comentarios
Friedrich
el 30 de Ag. de 2013
Can you post your loadlibrary command here? Where is the DLL and header file located? Keep in mind that loadlibrary works for native C style header files only.
When you run the above command the DLL and the all needed Header files must be your current folder. I assume that not the case. You need to pass down the folder where the needed header files are located. For that you need to use the -I (<=capital i) flag for mex. See the documentation for more information about that flag. Since the DLL depends on other DLLs you need to make them available to MATLAB by either copying them next to the CNanaoLambda.dll (which I wouldnt recommend doing) or by setting the PATH environment variable locally for your MATLAB by using the SETENV command.
Respuestas (0)
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!