How to use C++ shared library with Matlab compiler in linux?

I try to use C++ shared library with Matlab compiler. I have successfully done this in windows including compile the lib and dll files in matlab using mcc, set project properties in microsoft visual studio, and set environment variables. I have generated the .exe file and it works perfectly. But I have no idea how to do this in linux. How to add PATH variables? How to call g++ compiler with the required include files and libraries? I see some tutorials but none works. I always get errors like "undefined reference to `mxDestroyArray'". I don't know why this happens and how to solve it. I am using linux red hat. I really appreciate it if anyone can help.

Answers (0)

Categories

Products

Asked:

on 14 Jan 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!