Revision history for CompilerRunning


Revision [21680]

Last edited on 2016-11-07 07:54:05 by fxm [Formatting]

No Differences

Revision [20777]

Edited on 2016-03-12 11:39:52 by fxm [Formatting]

No Differences

Revision [19966]

Edited on 2016-02-10 15:47:12 by DkLwikki [Update link format]
Additions:
- [[CompilerInstalling|Installing FreeBASIC]]
- [[CompilerCmdLine|Compiler Command Line Options]]
- [[CompilerFAQ|Compiler FAQ]]
Deletions:
- [[CompilerInstalling Installing FreeBASIC]]
- [[CompilerCmdLine Compiler Command Line Options]]
- [[CompilerFAQ Compiler FAQ]]


Revision [16655]

Edited on 2013-03-20 11:56:43 by CountingPine [Remove CamelCase links]
Additions:
To compile manually, you should append the ""FreeBASIC"" installation directory to your PATH environment variable, separating it from previous entries using a semi-colon. Now you can simply use "fbc" from the command prompt, instead of always having to type in the full path (e.g. "C:\""FreeBASIC""\fbc.exe").
Deletions:
To compile manually, you should append the FreeBASIC installation directory to your PATH environment variable, separating it from previous entries using a semi-colon. Now you can simply use "fbc" from the command prompt, instead of always having to type in the full path (e.g. "C:\FreeBASIC\fbc.exe").


Revision [14659]

Edited on 2010-06-19 04:21:31 by DkLwikki [Reverted previous change.]
Additions:
{{fbdoc item="back" value="DocToc|Table of Contents"}}
Deletions:
{{fbdoc item="back" value="FBWiki|Main Page"}}


Revision [14651]

Edited on 2010-06-18 09:14:03 by DkLwikki [Adjust to new installer]
Additions:
The compiler can be manually invoked from the command-line, or automatically by your IDE/Code Editor. If you're using an IDE, you will usually have to tell it where the compiler was installed, so it can find it. How exactly to do that depends on the IDE.
To compile manually, you should append the FreeBASIC installation directory to your PATH environment variable, separating it from previous entries using a semi-colon. Now you can simply use "fbc" from the command prompt, instead of always having to type in the full path (e.g. "C:\FreeBASIC\fbc.exe").
Then, open a console/command prompt/MS DOS prompt, in the same directory as your program. To compile your program, you can use:
##C:\mystuff\myprogram\> fbc myprogram.bas##
and ##myprogram.exe## will be created in the same directory.
A console can be launched in a specific directory from Explorer by using Microsoft's "Open Command Window Here" ""PowerToy"" on Windows XP. On Windows Vista & above you can SHIFT+""RightClick"" on a folder in Explorer to see the 'Open Command Window Here' option. As a last resort, you can also select Start -> Run, type "cmd" and hit Enter, and use the "cd" command to change the current directory.
Note: You can in fact invoke the compiler from any directory you like, but you have to specifiy the correct path to your program, so the compiler can find it, for example:
##C:\> fbc mystuff\myprogram\myprogram.bas##

The resulting executable will still be put in the same directory as the program.
Deletions:
A desktop icon and start-menu links should have been created by the installer, and can be used to open the console directly into the directory where ""FreeBASIC"" was installed - ##""C:\Program Files\FreeBASIC""## by default. Alternatively, using the console ("MS-DOS prompt"), navigate to the directory where ""FreeBASIC"" was installed.


Revision [14634]

Edited on 2010-06-15 11:31:38 by DkLwikki ["Back to Main" instead of "Back to TOC"]
Additions:
{{fbdoc item="back" value="FBWiki|Main Page"}}
Deletions:
{{fbdoc item="back" value="DocToc|Table of Contents"}}


Revision [14010]

Edited on 2008-12-12 07:33:23 by CountingPine [Formatting]
Additions:
A desktop icon and start-menu links should have been created by the installer, and can be used to open the console directly into the directory where ""FreeBASIC"" was installed - ##""C:\Program Files\FreeBASIC""## by default. Alternatively, using the console ("MS-DOS prompt"), navigate to the directory where ""FreeBASIC"" was installed.
to see a list of options. To compile the "Hello, world!" example program, navigate to the directory where the ""FreeBASIC"" examples were installed (/usr/local/share/freebasic), and type,
If the install script ##install-standalone.sh## was successfully executed with enough privileges, a link to the compiler binary should have been created at ##/usr/bin/fbc##, allowing any user access to the compiler from any directory. If it was not possible to create the link, you may want to alter your ##PATH## environmental variable to be able to invoke the compiler from any directory. Navigate to the directory where ""FreeBASIC"" was installed.
Navigate to the directory where ""FreeBASIC"" was installed. For example, if ""FreeBASIC"" is installed in the directory ##C:\FB##, type,
Some DOSes accept "##CDD C:\FB##" as well. You can also add the ""FreeBASIC"" directory to your PATH environment variable (usually something like "##SET PATH=C:\FB\;%PATH%##") so you can invoke the compiler from any directory.
Deletions:
A desktop icon and start-menu links should have been created by the installer, and can be used to open the console directly into the directory where FreeBASIC was installed - ##C:\Program Files\FreeBASIC## by default. Alternatively, using the console ("MS-DOS prompt"), navigate to the directory where FreeBASIC was installed.
to see a list of options. To compile the "Hello, world!" example program, navigate to the directory where the FreeBASIC examples were installed (/usr/local/share/freebasic), and type,
If the install script ##install-standalone.sh## was successfully executed with enough privileges, a link to the compiler binary should have been created at ##/usr/bin/fbc##, allowing any user access to the compiler from any directory. If it was not possible to create the link, you may want to alter your ##PATH## environmental variable to be able to invoke the compiler from any directory. Navigate to the directory where FreeBASIC was installed.
Navigate to the directory where FreeBASIC was installed. For example, if FreeBASIC is installed in the directory ##C:\FB##, type,
Some DOSes accept "##CDD C:\FB##" as well. You can also add the FreeBASIC directory to your PATH environment variable (usually something like "##SET PATH=C:\FB\;%PATH%##") so you can invoke the compiler from any directory.


Revision [13284]

The oldest known version of this page was created on 2008-04-27 21:52:09 by DoS386 [Formatting]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode