gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 08:50:19 27 4
gpt4 key购买 nike

我正在尝试将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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com