How to compile with GNU compiler on UNIX system.

sushant005

sushant005

@sushant005-tyt4WK Oct 22, 2024
I an using Ubuntu 10.04 as my OS and i installed GNU C++ compiler wants to know that what is the command to compile C++ program on UNIX system?
Is there any necessary software required to run C++ program?
Help me out !!

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Aashish Joshi

    Aashish Joshi

    @aashish-VrevFC Aug 11, 2010

    you might wanna go through the following links:

    <a href="https://ubuntuforums.org/archive/index.php/t-401823.html" target="_blank" rel="nofollow noopener noreferrer">ubuntuforums.org</a>

    #-Link-Snipped-#

    You'll need to install gcc/g++. Open the synaptic package manager and search for the appropriate package and install it. You will of course need internet connection.

    [EDIT]

    On the other hand, open the terminal window and run the following command. This should be all you need:

    sudo apt-get install build-essential