Why is clibgen.generateLibraryDefinition throwing errors after Matlab - MSVC upgrade ?
Show older comments
I have a C++ library that I interface with using clibgen. Back in 2023, I used MSVC 142 and Matlab 2022a to perform the operation and made it work.
I am now using MSVC 143 and Matlab 2024a. I performed a minor update to the C++ library. The C++ build goes smoothly, with no error or warning. However, running clibgen.generateLibraryDefinition throws errors that I did not get before :
Errors parsing interface generation files.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\type_traits(2304):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\type_traits(2332):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\type_traits(2341):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\type_traits(2350):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\type_traits(2359):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\vector(2303):
error: operator may not be a static member function
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\vector(3621):
error: operator may not be a static member function
As far as I am aware, the errors are pointing to standard headers installed with MSVC 143. Any idea why I am getting these errors now but only in Matlab, not when building my C++ project, and how to fix them ?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler 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!