Clear Filters
Clear Filters

Compiler SDK cannot find .lib file

5 views (last 30 days)
Nathan Lewis
Nathan Lewis on 19 Mar 2021
Answered: Anjaneyulu Bairi on 12 Apr 2024
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.

Answers (1)

Anjaneyulu Bairi
Anjaneyulu Bairi on 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.

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!