"mex -l" adds wired path

5 次查看(过去 30 天)
Fei
Fei 2025-6-18
编辑: Fei 2025-6-23
As you can see from the picture.
There is no path like "D:\sw\runtime\win64" on my computer.
Already tried:
  1. tested on matlab 2024b; --- same error
  2. tested on matlab 2025a; --- same error
  3. Unintall all matlabs;
  4. install matlab 2025a; --- same error
All failed.
BTY, The same command run succesfully on other computer.
How to resolve?

回答(1 个)

Suman
Suman 2025-6-20
Hi @Fei
It seems it is looking for the libabcd.lib in wrong directory instead of the one you passed with -L option. Are you sure path is correct? Shouldn't it be C:\work\code
Also try using -LC:\work\code since there is not space in the directory names. Also see the example here: https://in.mathworks.com/help/matlab/ref/mex.html#btx0rai-1
Hope that helps!
  1 个评论
Fei
Fei 2025-6-23
编辑:Fei 2025-6-23
Hi @Suman,
Thanks for your reply.
The -L path doesn't matter, since I had already tried many different format. They all didn't work.
I have solved this problem after removing "D:\sw\runtime\win64" in my computer's system PATH.It seems like a bug of matlab.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

标签

产品


版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by