I compile the F14 demo model for Pack And Go with the following command as outlined in the documentation here;
<http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/bqufw6y.html>
set_param('rtwdemo_f14', 'PostCodeGenCommand',...'packNGo(buildInfo, {''packType'' ''hierarchical''})');
When I try to compile this in Microsoft Visual Studios I get an error that points to the following code in the simstruc.h
#elif defined(MATLAB_MEX_FILE) /* Used in mex function that is NOT an S-Function mex */ /* * Currently, plain mex functions will be treated as if they are * normal sfunctions. * # undef SS_MEX # define SS_MEX (1) */ # undef SS_SFCN_NORMAL # define SS_SFCN_NORMAL (1) #else # error Unrecognized use. #endif
Best Answer