Error while creating C shared library from matlab function: Failed to set MCR current directory to:

I am trying to create a C shared library from matlab function. I am not able to do this due to the following error:
Failed to set MCR current directory to:C:\Users\kdivy\OneDrive\Documents\MATLAB
[Warning: Name is nonexistent or not a directry: C:\Users\kdivy\OneDrive\Documents\MATLAB]
[Warning: Name is nonexistent or not a directory: C:\Users\kdivy\OneDrive\Documents\MATLAB]
[Warning: Name is nonexistent or not a directory: C:\Users\kdivy\OneDrive\Documents\MATLAB]
[Warning: Name is nonexistent or not a directory: C:\Users\kdivy\OneDrive\Documents\MATLAB]
Could not determine type of the MATLAB file 'read.m'. Please make sure that you are compiling MATLAB Program files.
read.m is a simple function that takes no parameter and returns a value

回答 (3 件)

Alexander Tuma
Alexander Tuma 2018 年 4 月 30 日
I have the same problem when i want to create a standalone app...
西怡 宗
西怡 宗 2021 年 3 月 29 日
我在构建Java包的时候也出现了这样的问题,请问解决了吗?

カテゴリ

ヘルプ センター および File ExchangeC Shared Library Integration についてさらに検索

質問済み:

2018 年 4 月 28 日

回答済み:

2021 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by