gcc - regdef.h : No such file or directory how can I includ files requerd by gcc?

标签 gcc error-handling

我正在尝试将helloWorld编译为mips,但我却遇到了错误

hello.S:10:20: error: regdef.h: No such file or directory

这是该文件的开头
/*
 * hello-1.2/Makefile
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1995, 1997 by Ralf Baechle
 */
#include <regdef.h>
#include <sys/asm.h>
#include <sys/syscall.h>

我确实试图通过像这样敲击它来包含它
export LD_LIBRARY_PATH=/home/slobodan/rtl819x-toolchain/toolchain/rsdk-1.5.5
-5281-EB-2.6.30-0.9.30.3-110714/include/

但是我仍然遇到相同的错误,所以我如何包含gcc重新请求的文件?

最佳答案

我只是通过添加-L即gcc -L/path/to/include/

关于gcc - regdef.h : No such file or directory how can I includ files requerd by gcc?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42957867/

相关文章:

c - 带有 C 预处理器指令的 Shell 脚本

c - gcc - 对 `libusb_init' 的 undefined reference

c - 用于编译的 GCC 链接库

c++ - 无法在 VS 代码中使用 gcc 查看 std::vector 的元素

python - 如何在此代码 Python 中处理 ValueError?

django - 如何从对 django 的前端响应中捕获错误和异常数据以添加更多上下文

Powershell 奇怪的错误处理行为

c++ - 为什么 gcc 和 clang 都不发出任何警告?

error-handling - 检查推送是否成功-angularfire2

bash - 执行返回非零值的函数时如何获取原始调用者lineno