How to unload C++ interface (of shared library)

3 ビュー (過去 30 日間)
Henning
Henning 2019 年 7 月 17 日
コメント済み: Drew Stroter 2021 年 10 月 20 日
Hello,
I have been testing the automatically generated C++ interface but ran into few problems (split into separate questions) (other question Link).
How do I unload a C++ library/interface?
The good ol' clear("all") did not help.
Even after deleting the folder containing the library (in my case containing the `testInterface.so`) the lib/interface is still usable (so I am guessing that it is loaded into memory).
This has been really confusing in my testing, because it is not possible to use the same interface name more than once, for example in a different folder (for testing, of course in usage one should pick one unique name).
So far I could only "unload" the lib via restarting MATLAB.
I looked at the docu of clib but could not find any info.
Thanks for your help!
  3 件のコメント
Peter Hristov
Peter Hristov 2021 年 8 月 27 日
Can we have someone from MW to comment on this, please? Everytime I want to rebuild the interface, I need to quit MATLAB to unload the package.
Drew Stroter
Drew Stroter 2021 年 10 月 20 日
Same problem here! Mathworks please help

サインインしてコメントする。

回答 (1 件)

Bruno Luong
Bruno Luong 2019 年 7 月 17 日
編集済み: Bruno Luong 2019 年 7 月 17 日
Not sure if it's applicable for C++ but have you checked
doc unloadlibrary
  1 件のコメント
Henning
Henning 2019 年 7 月 17 日
Thanks,
I think this only works for C libraries (as the docu says), but I have tried anyways with no luck.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by