Compiling C++ s-functions in MATLAB R2007b x86 on Windows 7 x64 Professional
1 回表示 (過去 30 日間)
古いコメントを表示
Steps already taken:
- Installed VS 2005 Express
- Installed Win 7 SDK
- Installed VS 2005 x86 Runtimes SP1 + MFC Security Update
- Set the environment variable MSsdk to the SDK path.
- Installed Borland 5.5 Compilers
- Installed MinGW and Gnumex.
All the compilers will compile a C++ s function successfully. However, when trying to reference those files using an s function block I get an 'error obtaining sizes from Mex. Specified module could not be found'.
Has anyone successfully compiled a C++ s function on the set up described.
I must use 32 bit to be compatible with the work of my colleagues.
- - - - - - - - - - - - - - - - - - - -
Thanks in advance,
Craig
0 件のコメント
採用された回答
Kaustubha Govind
2013 年 1 月 17 日
編集済み: Kaustubha Govind
2013 年 1 月 17 日
The 'Specified module could not be found' error usually means that you are missing one or more DLL dependencies. Please see if this solution helps you debug the issue: How do I profile my EXE or DLL file with Dependency Walker?
PS: The S-function MEX-file is really a DLL with a MEX-specific extension, so you can treat it like a DLL in debugging.
その他の回答 (1 件)
Craig
2013 年 1 月 18 日
編集済み: Craig
2013 年 1 月 18 日
1 件のコメント
Kaustubha Govind
2013 年 2 月 1 日
Instead of copying over the DLLs, it might be best to add their actual locations to the system PATH environment variable.
参考
カテゴリ
Help Center および File Exchange で C Shared Library Integration についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!