Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

RTW compilation error: parser stack overflow; code too complex

Status
Not open for further replies.

Boltzmann1

Aerospace
Jan 5, 2005
1
I'm running into an issue with RTW using the generic real-time target. The problem is that the compilion step errors with a parser stack overflow; code is too complex error. I haven't found any useful info on the Mathworks site or on Microsoft's site about resolving this error. I'm using Visual Studio 6 as the compiler.

The full error is as follows:

### Compiling test_model.c
cl -Ot -DUSE_RTMODEL -DMODEL=test_model -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=27 -DMT=0 -DHAVESTDIO -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32 test_model.c
test_model.c
test_model.c(6925) : fatal error C1026: parser stack overflow, program too complex
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Has anyone seen this error before and perhaps found a workaround?

Thanks,

M. Monroe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor