| Home | Why Omnibasic | Features | FAQ | Examples |
|---|---|---|---|---|
| Reviews | Keyword/Syntax | On-Line Manual | Download Manual | ScreenShots |
Chapter 6Using the Compiler Once the program is written using the IDE editor, the program is ready to be compiled. This is accomplished by invoking the compiler. The IDE automatically determines if you want to compile a console application or a graphical application based upon what mode you are using the IDE in. All that you need to do to compile your program is to press the Compile Project button For a console application
For a graphical application
The compiler is called ‘ob’ and is normally found in the OmniBasic base directory. If no options are given, OmniBasic will compile the source (.b or bw) file into an executable program. This sequence of events may be modified or enhanced by the use of command line options. The options (opts) are as follows:
When you compile if any errors occur then the IDE will display them on the Compile window. In the following example the programmer forgot to give a length to the B string variable that he created. This program was created using the IDE and each section that has a heading would show up in the Editor as a separate module. The #USE OBDefs DEF inserts into the program all of the standard OmniBasic defined constants. In the Declarations, the programmer left the * 20 off of the STRING declaration.
|
|||
|
The compiler detected three errors. The first was the original syntax error that caused the problem. The second error was caused by trying to use the same variable that was not dimensioned properly and the third error was from using the variable that was not defined correctly in the first place. By changing line two to “DIM B AS STRING * 20” then the program will compile and run correctly. |
Home || Why Omnibasic || Features || FAQ || Examples
Reviews || Links || Privacy Statement || Top of Page
Innomation Systems, Inc.
117 Morrison Ave. Morrison, MO 65061 (573) 294-6130
OmniBasic is a
trademark of Innomation Systems, Inc., other trademarks are the property of their
respective owners.
Innomation Systems, Inc. reserves the right to change prices and specifications without prior notice.
Copyright © 2000, 2001, 2002 Innomation Systems, Inc.