gpt4 book ai didi

compiler-errors - test.bas()错误23 : File not found

转载 作者:行者123 更新时间:2023-12-02 10:59:32 25 4
gpt4 key购买 nike

我正在尝试运行一个简单的FreeBASIC程序:

Print "Hello World"

但是,当我尝试运行它时,它给了我这些错误:
yamboy1@laptop:~$ fbc test.bas
test.bas() error 23: File not found, crt1.o
test.bas() error 23: File not found, crti.o
test.bas() error 23: File not found, crtn.o
ld: cannot find -lncurses
ld: cannot find -lm
ld: cannot find -ldl
ld: cannot find -lpthread
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a when searching for -lgcc
ld: cannot find -lgcc
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_eh.a when searching for -lgcc_eh
ld: cannot find -lgcc_eh
ld: cannot find -lc

这和 this post不同

最佳答案

这似乎是32位/64位不匹配,好像ld正在寻找32位gcc工具链。您是否偶然安装了32位FreeBasic?

看来您使用的是64位计算机,因此,如果尝试过,请尝试从以下位置获取并安装64位版本:
https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86_64.tar.gz/download

关于compiler-errors - test.bas()错误23 : File not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47478770/

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