MEX: Matlab included libraries not found (Windows)
Afficher commentaires plus anciens
I have finally succeeded to install MinGW C/C++ Compiler (TDM-GCC 4.9.2) on a Windows x64 machine and I've been able to configure it manually. I am trying to compile my code which has compiled without problems before (Matlab 2012a). The command line is
call "C:\Program Files\MATLAB\R2012b\bin\mex.bat" -output mymexfile mymexcode.c .\asio\asio.cpp .\asio\asiodrivers.cpp .\asio\asiolist.cpp .\audio_io.cpp ole32.lib winmm.lib advapi32.lib user32.lib
So I'm trying to include those four libraries (ole32.lib winmm.lib advapi32.lib user32.lib), which can all be found in
c:\Program Files\MATLAB\R2016b\sys\lcc64\lcc64\lib64\
I get those errors:
g++: error: ole32.lib: No such file or directory
g++: error: winmm.lib: No such file or directory
g++: error: advapi32.lib: No such file or directory
g++: error: user32.lib: No such file or directory
How do I make mex/gcc/g++ find those libraries?
Best regards
Réponses (1)
Taoufiq Bellamine
le 7 Déc 2017
0 votes
Hey man, did you get to fix that bug. I'm trying to compile the playrec utility on a windows 7 laptop using the MinGW compiler on Matlab 2017 and it's giving me the same error. It starts compiling fine, it's only when it gets to locating these libs.
Error using mex gcc: error: user32.lib: No such file or directory gcc: error: ole32.lib: No such file or directory gcc: error: advapi32.lib: No such file or directory gcc: error: winmm.lib: No such file or directory
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!