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?
already?!!
-
- Posts: 385
- Joined: Oct 16, 2005 0:15
- Location: USA
- Contact:
-
- Posts: 1706
- Joined: May 27, 2005 6:34
- Location: Cambodia, Thailand, Lao, Ireland etc.
- Contact:
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
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
ya, if you're in fact trying to create a -o file, do this
(i think; linux is weird)
Code: Select all
fbc freethefish.bas -c -o /usr/fishy/freethefish.o
-
- Posts: 385
- Joined: Oct 16, 2005 0:15
- Location: USA
- Contact: