File extension | Description |
.bas | FreeBASIC source file |
.a | Library |
.o | Object file |
.rc | Resource script (Windows only) |
.res | Compiled resource (Windows only) |
.xpm | X icon pixmap (Linux only) |
Compiling options Source code -b < name > Error checking and DebuggingAdd a source file to compilation -cCompile only, do not link -o < name >Set object file path/name (must be passed after the .bas file) -i < name >Add a path to search for include files -include < name >Include a header file on each source compiled -d < name=val >Add a preprocessor's define -lang < name >Select language compatibility: fb, fblite, qb, deprecated -entry < name >Main file without extension, the entry point (default is the first .bas file on the command line) -m < name >Main file without extension, the entry point (default is the first .bas file on the command line) -w < value > Platform specificSet min warning level: all, pedantic, next or a value -eAdd error checking -exAdd error checking with RESUME support -exxSame as -ex plus array bounds and null-pointer checking -gAdd debug info -noerrlineDo not show source line where error occurred -profileEnable function profiling -maxerr < val >Only stop parsing if <val> errors occurred -arch < type > MiscellaneousSet target architecture (default: 486) -target < platform >Set the target platform for cross compilation -s < name >Set subsystem (gui, console) -t < value >Set stack size in kbytes (default: 1M) -r Do not delete the asm file(s) -vBe verbose -versionShow compiler version -Wa < opt >Pass options to GAS (separated by commas) -prefix < path >Set the compiler prefix path | Linking options Object code -a < name > RuntimeAdd an object file to linker's list -l < name >Add a library file to linker's list -x < name >Set executable/library path/name -p < name >Add a path to search for libraries -Wl < opt >Pass options to LD (separated by commas) -lib MiscellaneousCreate a static library -dllCreate a DLL, including the import library. (Same as -dylib) -dylibCreate a DLL, including the import library -mtLink with thread-safe runtime library -nodeflibsDo not include the default libraries |