That's what I do to install last FreeBASIC version:
1.- Download it from sourceforge. Moneo: as mentioned, Sourceforge works perfectly and you are getting problems 'cause you have spyware in you system that doesn't let you browse normally. Sourceforge, as mentioned as well, is mirrored in many places. That means that the files hosted by sourceforge are copied to different servers in different locations. As sourceforge has a huge volume of downloading, that's done so if you can't download from a server, you can try another.
2.- Once downloaded, unpack it respecting directory structure. This is very important.
3.- Then I set up my path system variable. I add <fB dir>, <fB dir>\inc, <fB dir>\bin, <fB dir>\lib to the system path. As I don't like to bloat my system variables, I make this using a BAT file which I call before I'm going to work with the compiler:
Code:
@echo off
set path=%path%;c:\freeBASIC;c:\freeBASIC\inc;c:\freeBASIC\lib;c:\freeBASIC\bin
That way I can call fbc from anywhere.
4.- Now I'm ready to go. I go to my program's folder, and call the compiler from there. fbc is very easy to use and a fbc without parameters shows a list of them. But most of the time it will be just a matter of:
Which will compile myprog.bas into myprog.o and then link it to the RTL producing myprog.exe, all automaticly. You have switches to stop the process at the creation of the .o file and stuff like that.
To compile a project with several bas files you just do:
Code:
fbc mainmodule.bas secondmodule.bas thirdmodule.bas
To include a library file:
Code:
fbc mainmodule.bas secondmodule.bas -l library1.a
etcetera. Mind you that this is a 32 bits compiler so old libraries written for 16 bits DOS (i.e. .LIBs used with QB) won't work.