필터 지우기
필터 지우기

Why do I get segmentation fault when I use MCC to compile an MATLAB file in MATLAB 7.2 (R2006a)?

조회 수: 8 (최근 30일)
I compiled the magic square example in the documentation using MCC. When I run the standalone executable at the system prompt, I get the following error:
*** glibc detected *** free(): invalid pointer: 0x080a5ca0 ***
*** glibc detected *** free(): invalid pointer: 0x080a5b40 ***
*** glibc detected *** free(): invalid pointer: 0x080a5b58 ***
*** glibc detected *** free(): invalid next size (fast): 0x080a5a28 ***
*** glibc detected *** malloc(): memory corruption: 0x080a5a50 ***
Segmentation fault

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 1월 15일
This error occurs when the version of the GCC compiler that is used is not compatible with MATLAB Compiler 4.4 (R2006a). The following page contains a list of compilers compatible with different versions of MATLAB:
The appropriate GCC version can be downloaded from the following website:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by