Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Do you have to include include file in freebasic?


Asked by Iliana Herman on Dec 05, 2021 FAQ



Note: The following prototypes are not the official FreeBASIC prototypes (see the include files), however, they will give you enough information to properly use the functions. The Include File column contains the name of the file which you must include, using the #include directive at the beginning of your program.
And,
To do this: Write a basic code, save it a .BAS, open your commandline, type in the location of your FreeBasic compiler (FBC.exe), then when it runs, type in the location of you .BAS file. Another trick is to use a .BAT. For example, open Notepad and type: C:\FreeBasic\FBC.exe C:\FreeBasic\Program.bas
Likewise, Some of the C library functions documented elsewhere may not be available in FreeBASIC. Check the appropriate include file for more information. Note: The following prototypes are not the official FreeBASIC prototypes (see the include files), however, they will give you enough information to properly use the functions.
Furthermore,
Gfxlib is "built in" into the language, it is not necessary to include any .bi file or to link any library explicitly. FreeBASIC detects you want to use Gfxlib when you use the Screen or ScreenRes statements. So to use Gfxlib, just start a graphics screen mode and use the graphics commands.
Also Know,
FreeBasic is the next level for the Basic language. This few month old language is better than QBasic while keeping 99% of basic's statements. FreeBasic takes Basic to 32 bit, therefor shedding of the few 16bit statements. All the while, its free to access and use, and gains a few new statements that make it easier to use than QBasic.