Menu

Hello world

Georg

Here will be described how you can compile a simple "Hello world" program with FlDev.

You can edit a program file with FlDev and then open a console window to compile this program from the command line or a script you have written for that. You can also call Make from the command line to compile the program file.

However, if you want to use the IDE to generate a Makefile for you and compile and run the program by clicking on the respective icons you have to define a project for your program. This way FlDev can save the libraries and files you need to compile this program and also save further settings that may be required. These project files are saved with the ".fldev" extension.

So select "New project" from the menu. You will be presented with this screen where you can enter several options.

First define the name of this project, then the directory where the files for this project will be saved, i.e. the source code, the Makefile and the project file. For this example select "Console App", check the "Generate 'main.cpp' " button and then press the OK button. FlDev will generate this project now and put a "hello world" example code into the edit window.

Now all you have to do is select "Make and Run" from the project menu. A new window will appear at the bottom that displays the results of running the Make program following that a console window will appear showing the result of running the compiled program.