type
Post
status
Published
date
Jul 6, 2024
slug
summary
tags
BUG
category
FPGA
icon
password
上次编辑时间
Nov 13, 2024 12:50 PM
AI summary
由于安装gcc时只安装了build-essential,没有将其添加到环境变量中,因此打开Make工程时,CLion会产生如下错误:
notion image
要解决这个问题,一个方法是将GCC添加到环境变量中,但是这个方法需要修改至少两个配置文件,些许麻烦。
因此采用另一个方案:
  • 使用which命令查找gcc的安装位置
  • 将Makefile文件中的CC=gcc改为绝对路径
    • notion image