![]() Compiling a Hello World Example #Ĭompiling a basic C or C++ program using GCC is pretty easy. GCC is now installed on your system, and you can start using it. Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ![]() This is free software see the source for copying conditions. The default version of GCC available in the Ubuntu 18.04 repositories is 7.4.0: gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0Ĭopyright (C) 2017 Free Software Foundation, Inc. To validate that the GCC compiler is successfully installed, use the gcc -version command which prints the GCC version: gcc -version You may also want to install the manual pages about using GNU/Linux for development: sudo apt-get install manpages-dev The command installs a bunch of new packages including gcc, g++ and make. Install the build-essential package by typing: sudo apt install build-essential ![]() Start by updating the packages list: sudo apt update Perform the steps below to install the GCC Compiler Ubuntu 18.04: How To Compile C++ On A Mac (Quick and Easy Step by Step Guide)
0 Comments
Leave a Reply. |