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 /
28 views (last 30 days)
Show older comments
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 Comments
Umar
on 22 Jun 2024
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
on 11 Jul 2024 at 5:13
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.
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!