already?!!

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

already?!!

Postby blahboybang » Jul 06, 2006 3:30

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: 1704
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Jul 06, 2006 4:03

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: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Jul 06, 2006 20:50

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:

Postby blahboybang » Jul 06, 2006 23:18

thx, works now

Return to “Linux”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest