already?!!

Linux specific questions.
Post Reply
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

already?!!

Post by blahboybang »

I just installed fb 0.16 on linux, but when I tried to compile a source...

[root@localhost fishy]# fbc freethefish.bas -o /usr/fishy/freethefish
fbc: Symbol `ospeed' has different size in shared object, consider re-linking
/usr/share/freebasic/lib/linux/crt1.o: In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'

Getting errors ALREADY?!!!

How do I fix it?
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

The `ospeed' warning is harmless, but I noticed it has disappeared from recent releases, so you should check which version you installed.

I don’t fully understand the error message, but I think your command line is wrong. The -x option is used to name the executable. As far as I recall, I have seen the -o option used only in the compiler to name object files. Try compiling some programs in the same directory as the bas files just to see if things are working.

Garvan
cha0s
Site Admin
Posts: 5319
Joined: May 27, 2005 6:42
Location: USA
Contact:

Post by cha0s »

ya, if you're in fact trying to create a -o file, do this

Code: Select all

fbc freethefish.bas -c -o /usr/fishy/freethefish.o
(i think; linux is weird)
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Post by blahboybang »

thx, works now
Post Reply