How do I fix "undefined reference" link error on Ubuntu 16 with MATLAB R2016b and earlier?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
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=''

More Answers (0)

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!