MATLAB: Do I receive an error when compiling REGEXP with the MATLAB Compiler 3.0 (R13)

compilecppMATLAB Compilerregexp

When I compile REGEXP I receive the following error:
regexptest.cpp
regexptest.cpp(99) : error C2661: 'regexp' : no overloaded function takes 2 parameters
MBUILD.BAT: Error: Compile of 'regexptest.cpp' failed.
??? Error using ==> mbuild
Unable to complete successfully
??? Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).
Error in ==> D:\matlab6p5\toolbox\compiler\mcc.dll

Best Answer

This is bug in the MATLAB Compiler 3.0 that has been forwarded to our development staff to be addressed in a future release of the MATLAB Compiler.
This issue is specific to C++. If you convert your code to C and then compile, the error does not happen.
As a workaround, please compile your code to C (and not C++). For example
mcc -B sgl mymainfile