Compiler SDK cannot find .lib file

1 次查看(过去 30 天)
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.

回答(1 个)

Anjaneyulu Bairi
Anjaneyulu Bairi 2024-4-12
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.

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by