Why do I receive the error "ld: library not found for -lmex" when trying to compile a MEX function manually?
Show older comments
I am trying to use a supported compiler to compile my C code into a MEX file, instead of the "mex" command. I receive the following error when I try to compile:
ld: library not found for -lmex
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Why do I get this error and how can I fix it?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!