How to Compile a C++ Program on Linux

Published: 29 May 2023
on channel: How To Make Tech Work from TechRepublic
3,633
37

Today, I want to show you how to compile a C++ program on Linux. I'll demonstrate on Ubuntu Desktop 23.04 and will use the tried and true Hello, World! app as an example. The first thing you must do is install the necessary software to allow you to build C++ programs.

Here is the code** for Hello World:

include (less than)iostream(greater than)

int main() {
std::cout (less than)(less than) "Hello World!";
return 0;
}


**angled brackets aren't allowed in YouTube descriptions so they've been replaced with (less than) and (greater than)

Interested in how to Compile a C++ Program on Linux? Check out the step-by-step guide at TechRepublic: https://www.techrepublic.com/article/...

Read more like this: https://www.techrepublic.com/topic/de...

➤ CHAPTERS
0:00 - Intro
0:14 - Tutorial
1:28 - Visit our Website!

Written and Hosted by: Jack Wallen
Edited by: Kyle Heildebrand

➤ OUR WEBSITE:
https://techrepublic.com/?utm_source=...

➤ MORE VIDEOS: https://techrepublic.com/videos/?utm_...

➤ LINKEDIN:   / techrepublic  
➤ TWITTER:   / techrepublic  
➤ FACEBOOK:   / techrepublic  
➤ FLIPBOARD: https://flipboard.com/@TechRepublic


Watch video How to Compile a C++ Program on Linux online, duration hours minute second in high quality that is uploaded to the channel How To Make Tech Work from TechRepublic 29 May 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,633 times and liked it 37 visitors.