Why do I receive an error when compiling REGEXP with the MATLAB Compiler 3.0 (R13)?

1 view (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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

More Answers (0)

Categories

Find more on MATLAB Compiler 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!