Powerful linux IDE-Geany configuration instructions, linuxgeany configuration instructions
I started using Ubuntu today (mainly to prevent myself from playing games on windows) at the beginning, I was not used to finding a suitable Compiler (when can DEV c ++ come out of Linux?). codelite code :: blocks won't be configured. I don't know much about the tutorials on the Internet, so I started to study Geany. Here I will explain how I configured Geany and try to help oier who just used Ubuntu. (Here, I also spoke about NOI's customized Linux. I feel that it is not comparable to the authentic Ubuntu )...
First, make sure that you have installed gcc and g ++ (generally, Linux has built-in). Here we also provide the installation method:
Terminal Input
sudo apt-get install gccsudo apt-get install g++
The following page appears:
The next step is to install Geany.
sudo apt-get install geany
After the installation is complete, enter geany on the terminal to open the compiler. The following is the internal configuration.
First, set the file type to c ++ in the document -- set the file type -- programming language, and then set it in the generate -- set the generate command as follows:
Finally, set it to your personal style in edit-preferences, which is not described here.
During compilation, click the menu to generate the file. A file-saving interface will pop out. Note that the name must be suffixed with. cpp. Otherwise, the compiler will not be able to recognize it:
Then press F9 to compile and then press F5 to run the executable file. Here, you should also note that after you modify the code, press F9 to re-compile it. If you press F5 directly, it will be the last compilation. file