0

I am a mechanical engineer and I have Ubuntu 14.04.3 LTS on my Laptop. I need to install C++ program. How I can do that ?

Help me please

4
  • Are you looking for a full IDE, or just the compiler for C++?
    – Thomas Ward
    Oct 27, 2015 at 19:05
  • Unfortunately I don't know What is IDE ?
    – M. Vahid
    Oct 27, 2015 at 19:09
  • I want to write my engineering code to solve problems in Openfoam software and in this software C++ programming language is governing.
    – M. Vahid
    Oct 27, 2015 at 19:17
  • Check the duplicate that this is marked as, it explains how to get g++ which compiles C++ code. If you are already writing code in Openfoam and it just needs C++ then that's easy.
    – Thomas Ward
    Oct 27, 2015 at 19:21

1 Answer 1

1

Just install G++, the C++ compiler of GCC:

$ sudo apt install g++

You can then compile your source code like this:

$ g++ code.cpp -o file

This will compile "code.cpp" to "file"

Not the answer you're looking for? Browse other questions tagged .