Help with 'Make Error' in Simulink
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I am running a simulation in Simulink and get the following error. I am compiling with Windows SDK (current version). I tried to delete the slprj folder it generates but it still throws this. I've also tried switching to the visual c++ 2010 express and I get a similar error.
I would appreciate any help.
C:\Users\Ian\Documents\School\D+C Robotics\Wing Robot Project\MATLAB Simulation Files\slprj\_sfprj\SoftSwitchController\_self\sfun\src>call "mexopts.bat"  
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 
Copyright (C) Microsoft Corporation.  All rights reserved. 
### Compiling "SoftSwitchController_sfun.c" 
  cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD   /I "C:\Program Files\MATLAB\R2011b\extern\include" /I "C:\Program Files\MATLAB\R2011b\simulink\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\debugger\include"  "SoftSwitchController_sfun.c" 
SoftSwitchController_sfun.c 
### Compiling "SoftSwitchController_sfun_registry.c" 
  cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD   /I "C:\Program Files\MATLAB\R2011b\extern\include" /I "C:\Program Files\MATLAB\R2011b\simulink\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\debugger\include"  "SoftSwitchController_sfun_registry.c" 
SoftSwitchController_sfun_registry.c 
### Compiling "c1_SoftSwitchController.c" 
  cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD   /I "C:\Program Files\MATLAB\R2011b\extern\include" /I "C:\Program Files\MATLAB\R2011b\simulink\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011b\stateflow\c\debugger\include"  "c1_SoftSwitchController.c" 
c1_SoftSwitchController.c 
c1_SoftSwitchController.c(54897) : fatal error C1013: compiler limit : too many open parentheses 
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe"' : return code '0x2' 
Stop.
0 件のコメント
採用された回答
  Kaustubha Govind
    
      
 2012 年 5 月 10 日
        Looks like Stateflow (or an Embedded MATLAB Function block) is generating C code that strains against Visual Studio's limitation for number of levels of nested parentheses. Please report this to MathWorks Tech Support - they might be able to suggest a workaround and file a bug report if this is indeed a bug.
2 件のコメント
  Rajan
 2012 年 11 月 10 日
				Any update on this? I'm having the same problem. I'm using MATLAB Function blocks in Simulink, and Microsoft Software Development Kit (SDK) 7.1 (2010).
その他の回答 (1 件)
  David Amor
      
 2014 年 7 月 31 日
        Have you tried putting the project in a directory lower down in the C: drive
e.g. move
C:\Users\Ian\Documents\School\D+C Robotics\Wing Robot Project\ MATLAB Simulation Files \
to
C:\ MATLAB Simulation Files \
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で MATLAB Compiler についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!