gcc 컴파일 오류

gcc 컴파일 오류

이전에 MIPS 플랫폼용 Ubuntu 14.04 32비트에 크로스 컴파일러를 구축했습니다. 하지만 이제는 GCC로 일반 C 프로그램을 컴파일할 수 없습니다. 모든 것을 제거하고 다시 설치했지만 이 오류가 발생할 때마다. 처럼:

unrecognized option '--32' 

나는 gcc --version이것을 얻습니다 :

 GNU assembler 2.13.2 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `mips-dec-ultrix42'. 

나는 무엇을 해야할지 모르겠어요!

답변1

먼저 컴파일러를 찾으십시오.

find ${PATH//:/} -name 'gcc*'

심볼릭 링크를 만듭니다:

cd /usr/bin/
ls -l | grep gcc
ln -sf gcc-4.xx gcc

이제 버전을 다시 확인하세요.

gcc --version

관련 정보