Compiler SDK cannot find .lib file
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have an image processing function that I compile into a Csharedlib. Up until now, I've been working in version R2015b 32-bit. It's time to upgrade so that I can use newer functions available in version R2019a. For the 32-bit, I use 'Microsoft Windows SDK 7.1 (C)' to build the libraries. This functions without issue.
To build the same libraries using R2019a, I installed mingw-w64. When I run the same code to compile:
'mcc -v -B csharedlib:processImagesVCC processImagesVCC.m',
I sucessfully generate:
Generating file "processImagesVCC.h".
Generating file "processImagesVCC.c".
Generating file "processImagesVCC.exports"
After the log generates:
Building with 'MinGW64 Compiler (C)'.
I get the following error:
'Projects\Build Matlab Generated Image Processing Libraries\processImagesVCC.lib: No such file or directory exists'
I've tested the MinGW compiler according to the instructions on https://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html?searchHighlight=mingw&s_tid=srchtitle, but don't know where to go from here.
Any help would be appreciated.
0 Commenti
Risposte (1)
Anjaneyulu Bairi
il 12 Apr 2024
Hi,
I understand that you are getting an error that says, 'Projects\Build Matlab Generated Image Processing Libraries\processImagesVCC.lib: No such file or directory exists'. There could be an issue with the linker not finding the generated .lib file, or possibly that the file isn't being generated at all.
Verify MinGW installation and configuration properly, and Run mex -setup and mex -setup C++ in MATLAB to ensure that MinGW is selected as the default compiler for both C and C++ and ensure that your MinGW is up to date.
I hope this helps.
0 Commenti
Vedere anche
Categorie
Scopri di più su MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!