I used g++ directly to build the driver application in the MatrixDriver example in the C++ Shared Library Example section of the MATLAB Compiler 4.3 (R14SP3):
mcc -B cppsharedlib:libmatrixp addmatrix.m mutiplymatrix.m eigmatrix.m!g++ -o matrixdriver -L. -lmatrixp -I$MATLAB/extern/include matrixdriver.cpp
However, when I execute the resulting application:
!./matrixdriver
it fails silently with no error message. I have traced this to a failure in the mclInitializeApplication() call.
Best Answer