I'm trying to run a simple FreeBASIC program:
Print "Hello World"
However when I try to run it, it gives me these errors:
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 is not the same as this post
This seems like a 32-bit / 64-bit mismatch, as if ld is looking for a 32-bit gcc toolchain. Did you by chance install the 32-bit FreeBasic?
It seems you are on a 64-bit machine, so if you did, try grabbing and installing the 64-bit version from:
https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86_64.tar.gz/download