필터 지우기
필터 지우기

How to avoid the compiler error in _kids--Bad rule number 0

조회 수: 1 (최근 30일)
Ajith
Ajith 2013년 1월 18일
Hi, I am using S function builder and I am getting the error :: compiler error in _kids--Bad rule number 0 for lcc compiler.
The reason for this is I am using typedef signed long long mys64; typedef unsigned long long myu64;
So please help me to avoid this error by doing some internal setting.
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 1월 18일
How about if you use Visual Studio as a compiler instead? Does the error go away?
Ajith
Ajith 2013년 1월 21일
Can you Please explain clearly how to incorporate the visual studio compiler as I am new to Matlab.

댓글을 달려면 로그인하십시오.

채택된 답변

James Tursa
James Tursa 2013년 1월 18일
The lcc compiler that ships with MATLAB has bugs in it for the unsigned long long type. Your options are:
1) Change to a different compiler, such as Visual Studio
2) Update the lcc compiler to a newer version
3) Rewrite your code to work around the compiler bug (rewrite algorithms using signed long long instead, etc.)
  댓글 수: 2
Ajith
Ajith 2013년 1월 21일
Hi thanks for the answer.Let me try all the methods given by you. Also please tell me how to incorporate the visual studio compiler to the Matlab as I am new to Matlab.
Walter Roberson
Walter Roberson 2013년 1월 21일
You did not happen to mention which MATLAB version you are using. If you are using 2012a see http://www.mathworks.com/support/compilers/R2012a/win32.html . For other versions, edit the "R2012a" part of the URL to match your version.
There are links there to Visual Studio. Download it and install it however Microsoft tells you to. Then run Windows Update to see if there are any security patches for it. Once that is done, in MATLAB command
mex -setup
and choose the compiler out of the list it shows.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by