I am generating a stand-alone executable or shared library using MATLAB Compiler 4.0 (R14). For one of the M-functions, I have used the %#external compiler pragma, specifiying that this function is to be replaced with a user-created C/C++ function in the deployed application. In my external C/C++ code, I have included "mex.h" so that I am able to use the MEX API functions.
When trying to compile using the MCC function, I received link errors similar to the following:
undefined reference to '_mexErrMsgTxt'
where "_mexErrMsgTxt" could be replaced with function in the MEX API.
Best Answer