首页 > 解决方案 > Linux Ubuntu Cinnamon 上的 VirtualBox 中的代码 C 标准输出

问题描述

我尝试在 Virtual Box 上的 VM 上编写我的第一个 C 程序,并通过 YouTube 教程完成。现在我想编写一个“Hello World!” 程序。但问题是,VM 上似乎不存在 stdio.h。我做了一个更新,但它也没有帮助。

#include <stdio.h>

有人可以帮我解决这个问题吗?

first.c:1:10: fatal error: stdio.h: No such file or directory
    1 | #include <stdio.h>
      |           ^~~~~~~~
compilation terminated.

标签: cubuntustdiocinnamon

解决方案


推荐阅读