How do I fix "undefined reference" link error on Ubuntu 16 with MATLAB R2016b and earlier?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 4 Aug 2016
Edited: MathWorks Support Team
on 4 Aug 2016
How do I fix "undefined reference" link error on Ubuntu 16 with MATLAB R2016b and earlier?
Accepted Answer
MathWorks Support Team
on 4 Aug 2016
If your application myprog.c uses new gcc 5.3 features and you get a link error, use the following mex command options:
mex -client engine myprog.c MWCPPLIB=''
0 Comments
More Answers (0)
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!