FYI: I can compile using mex on my source .cpp file and run the generated mexa64 files in the MATLAB command window. When I setup the c caller or c function block in Simulink, it alwasy returns Failed to convert AST --> CGScope.
Can Mathworks staff give more insight on this error message? There is no other error shown in the diagonostic viewer.