Pick a Free OS

User login

Navigation

Introducing Motor: An IDE for Linux

set the project name to "helloworld", for example. The project root

directory will be set in appropriate way then. If you don't like

the project files to be located straight in your home directory, you

can change that too. A little hint. You can choose a directory using

the file browser, which is invoked by Ctrl-T. This key works in all the

file/pathname input lines. Also leave the "GNU standard documentation" and

"Generate initial source" items unchanged. Now, just move cursor to

"Create" and press enter.

The list of project files is displayed. Simply select helloworld.cc

here and press Enter. Now we are in the main screen of Motor. The

screen consists of the editor window filling most of it and two bars.

In the top it's a status bar and a messages bar in the bottom. The

menu bar will appear in the top if you press F10. Let's take a quick

tour into the project organisation. All the parameters can be viewed

and modified in the project settings dialog invoked with Shift-F11 key

or through the menu.

With this dialog you can modify parameters of the project such as the

command line options passed to compiler or linker, cvs repository and

some make issues. Also you can get to the list of files and

directories. Now let's select "Files" and see which files were

added to our project on creation. As we set "Generate initial source"

and "GNU standard documentation" options to "yes", our project is

already populated with some files. They are helloworld.c and a set of

documentation files in the "Miscellaneous" folder. To open a file here

just move the cursor to it and press Enter. But, let's continue

editing our source code. We can return to it either by opening

helloworld.c from the dialog or closing the dialog with ESC-ESC.

All we see in the editor window now is a piece of C source generated

from the template. We should remove everything between "{" and "}" to

make the main() function empty. Then we fill it with a single printf

call needed to print out the phrase we want to see ...

printf("Hello, world!n");

The program source is ready now. What next? We should build

the executable and run it to see how it works. Taking a quick

tour though the menu bar will help you find the key to be used to