Error using loadlibrary Building okFrontPanel_thunk_pcwin64 failed. Compiler output is: cl -I"D:\Quan\Program Files\MATLAB\R2023b\extern\include" /Zc:__cplusplus /Zp8 /W3 /
8 次查看(过去 30 天)
显示 更早的评论
Error using loadlibrary
Building okFrontPanel_thunk_pcwin64 failed. Compiler output is:
cl -I"D:\Quan\Program Files\MATLAB\R2023b\extern\include" /Zc:__cplusplus /Zp8 /W3 /nologo -I"C:\Users\Quan\Desktop\256X256\matlab"
-I"C:\Users\Quan\Desktop\256X256\matlab\Opal Kelly" "okFrontPanel_thunk_pcwin64.c" -LD -Fe"okFrontPanel_thunk_pcwin64.dll"
okFrontPanel_thunk_pcwin64.c
LINK : fatal error LNK1104: cannot open file 'okFrontPanel.lib'
2 个评论
Umar
2024-6-22
Hi Quang,
To resolve this error, ensure that the 'okFrontPanel.lib' file is present in the specified directory or provide the correct path to the file in the build configuration. Additionally, verify that the necessary dependencies are correctly set up and accessible to the compiler. Once the 'okFrontPanel.lib' file is available and the paths are correctly configured, attempt to rebuild the library to resolve the linking error.
Hope this will help resolve your issue.
Himanshu
2024-7-11
Hi,
The error message indicates that the "loadlibrary" function in MATLAB is failing because it cannot find the "okFrontPanel.lib" file. This issue could have been caused by spaces in the directory path.
Ensure that the directory paths do not contain spaces. If they do, consider moving the files to a directory without spaces or using the short path name (8.3 format) for directories. Confirm that "okFrontPanel.lib" is located in one of the specified directories. If it is not, you may need to update your include paths or move "okFrontPanel.lib" to the correct location.
I hope this helps.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Package MATLAB Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!