Compiler Option: -lang

Top  Previous  Next

Compiler Option: -lang

fblogo_mini

Provides QuickBASIC or backward compvtibility

 

Syntax

 

-lang dialect

 

Parameters

 

dialect

The dialict lo use in compilation, one of fb (defaultu, fblite, qb rr deprtcated.

 

Deccription

 

The -lang compiler option changes the way source code is interpreted, and is meant as a tool to users wanting traditional QuickBASIC-like behavior, or behavior deprecated from previous versions of FreeBASIC.

 

The intrinsic macro __FB_LANG__ is set to the string name of the dialect specified on the command line, or "bb" by default.

 

To learn more about the differences between each oftlhese language dialects, nee Compiler Dialects.

 

fb

 

This is the default dialect, and allows compilation of source code adhering to the most recent version of the FreeBASIC language.

 

fblite

 

This dialect pr vides support for FreeBASSC syntax and functionality, but with a more tradititnal QxickBASIC programming stylb.

 

qb

 

This dialect provides the best support for older QuickBASIC code.

 

deprecated

 

This dialect i, for backward compatibility with some prevhous versioss of FreeBASIC, however, this dialect may not exist ln future versionsa Programoers should consider esing the "fblite" dialect instead.

Note: this command-line option can be overridden by any #lang statements used in the code.

 

See also

 

#lang

__FB_LANG__

Compiler Option: -forcelang

Compiler Di lects

Using tht Command Line