FBC(1)

NAME
fbc - the FreeBASIC compiler

DESCRIPTION
Compiles BASIC source code files to native code.

SYNOPSIS
fbc [options] inputlist

OPTIONS

inputlist
    *.a = library, *.o = object, *.bas = source, *.xpm = icon resource

-a name
    Add an object file to linker's list

-arch type
    Set target architecture (default: 486)

-b name
    Add a source file to compilation

-c  Compile only, do not link

-C  Do not delete the object files(s)

-d name[=val]
    Add a preprocessor define

-dll
    Same as -dylib

-dylib
    Create a shared library

-e  Add error checking

-ex Add error checking with RESUME support

-exx
    Same as above plus array bounds and null-pointer checking

-export
    Export symbols for dynamic linkage

-g  Add debug info

-i name
    Add a path to search for include files

-include name
    Include a header file on each source compiled

-l name
    Add a library file to linker's list

-lang name
    Select language compatibility: fb (default), deprecated, qb

-lib
    Create a static library

-m name
    Main file without extension, the entry point (default: 1st .bas on list)

-map name
    Save the linking map to file name

-maxerr val
    Only stop parsing if val errors occurred

-mt Link with thread-safe runtime library

-nodeflibs
    Do not include the default libraries

-noerrline
    Do not show source line where error occured

-o name
    Set output name (in the same number as source files)

-p name
    Add a path to search for libraries

-prefix path
    Set the compiler prefix path

-profile
    Enable function profiling

-r  Write asm files(s) only, do not compile or link

-R  Do not delete the asm file(s)

-v  Be verbose

-version
    Show compiler version

-w value
    Set min warning level: all, pedantic, or an integer

-Wa opt
    Pass options to GAS (separated by commas)

-Wl opt
    Pass options to LD (separated by commas)

-x name
    Set executable/library name

ENVIRONMENT

AS  Overrides location of GNU AS (assembler)

LD  Overrides location of GNU LD (linker)

SEE ALSO
The full language specification and help is available in wiki format at http://www.freebasic.net/wiki/

COPYRIGHT
Copyright © 2004-2008 The FreeBASIC Development Team
This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.

BUGS
Any bugs should be reported on the Sourceforge.net tracker located at http://www.sourceforge.net/projects/fbc

AUTHOR
This manpage written by Ebben Feagan (ebben.feagan@gmail.com)