How to compile object files?

General FreeBASIC programming questions.
Post Reply
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

How to compile object files?

Post by Xusinboy Bekchanov »

How to compile object files (*.o)?
I tried to compile like this:
fbc 1.o
Gives an error message:
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: How to compile object files?

Post by MrSwiss »

Use:
fbc -C filename.bas (upper case "C", to not delete the .o file!)

Btw. its called "Command Line Options" in FB-doc.
Xusinboy Bekchanov
Posts: 791
Joined: Jul 26, 2018 18:28

Re: How to compile object files?

Post by Xusinboy Bekchanov »

MrSwiss wrote:Use:
fbc -C filename.bas (upper case "C", to not delete the .o file!)
Thanks you. Before I compiled using lowercase -c
Post Reply