C Caller block *.dll error

5 ビュー (過去 30 日間)
Ben Griffiths
Ben Griffiths 2023 年 5 月 15 日
回答済み: Satwik 2025 年 1 月 15 日
I am getting the error failed to load custom code library c:\Armoury\dislib\slprj\_slcc\hpQwdVE1r6v1WgDG7ExooD_cclib.dll
Im not exactly sure how to resolve this issue - The library I am trying to call is not named such gobbledygook characters but matlab appears to have a mind of its own.
Actual C library is indicated as below along with the relavent header files.

回答 (1 件)

Satwik
Satwik 2025 年 1 月 15 日
Hi Ben,
The issue you are encountering is related to the standard dynamic loader behavior on Linux. To resolve this, you need to ensure that the directory containing the shared libraries is included in your 'LD_LIBRARY_PATH’. This will allow the dynamic loader to locate and load the necessary library files.
You may follow these steps to add the required directory to your 'LD_LIBRARY_PATH':
1. Identify the Directory:Determine the directory where your custom library (`.dll` or `.so` file) is located.
2. Modify ‘LD_LIBRARY_PATH’:
i. Open a terminal window.
ii. Use the following command to add the directory to your LD_LIBRARY_PATH:
>> export LD_LIBRARY_PATH=/path/to/your/library:$LD_LIBRARY_PATH
3. Restart MATLAB:After updating the ‘LD_LIBRARY_PATH’, restart MATLAB to ensure the changes take effect.
Hope this helps!

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by