Install Dev C++ On Ubuntu

In this tutorial, we will learn to install C in Windows, Mac, and Linux.

Dev-c is basically a Windows program, with some work done to port to Unix like environments (cygnwin, Linux, etc). Run it under wine if you like, it's rated by winehq as silver or platinum, depending upon which version you select. Mar 09, 2016 How to Download and install DevCpp Orwell Please like and Subscribe. Instructions: 1.Go to: 2.Download DevCpp.

Install C on Windows

We will use an open-source Integrated Development environment named Code::Blocks which bundles a compiler (named gcc offered by Free Software Foundation GNU), editor and debugger in a neat package.

Step 1) Go to http://www.codeblocks.org/downloads and click Binary Release.

Step 2) Choose the installer with GCC Compiler, e.g., codeblocks-17.12mingw-setup.exe which includes MinGW's GNU GCC compiler and GNU GDB debugger with Code::Blocks source files.

Step 3) Run thedownloaded installer and accept the default options.

Step 4) Accept the Agreement

Step 5) Keep the component selection default and click Next.

Step 6) You may change the installation folder and click Next.

Step 7) To launch Code::Blocks double click on the icon.

C++

Step 8) It will detect the gcc compiler automatically, set it as default.

Associate C/C++ files with code::blocks

Step 9) You will see the IDE Home screen.

Install C in Linux

Linux operating systems mostly comes with GCC preinstalled. To verify if the compiler is installed on the machine, run the following command in the terminal:

After executing this command if the gcc is installed on the machine then it will return the information about the compiler otherwise it will ask you to install the compiler.

To set up the 'C' environment on Linux distributions follow the given steps:

1. Open terminal.

2. For red-hat, Fedora users, type and execute this command

3. For Debian and Ubuntu users, type and execute following command

4. To verify that the GCC has been successfully installed on the machine as we discussed earlier, execute the following command

Install C on MAC

To set up a 'C' programming environment on MAC operating system, follow the given steps:

1. Visit the given link https://developer.apple.com/downloads/index.action and download. You will need an Apple developer ID

'Command Line Tools for X-Code,' pick any version (latest version is always recommended) and download the .dmg file.

2. After the file is being downloaded on the machine, double click and follow the wizard and install the file. Always keep the default settings as suggested by the installation wizard.

3. After the installation process, open a terminal and run gcc -v command to check if everything is successfully installed.

Conclusion:

'C' program can be written and executed on any machine that has a suitable environment to run the program. Its recommended using an IDE to run C programs. An IDE includes a compiler, editor and debugger. Clanfg, MinGW compiler (Minimalist GNU for Windows), Portable 'C' compiler, Turbo C are popular compilers available.

install_gtest_ubuntu.md

commented Apr 10, 2018

I think you need to create the gtest directory before creating the symbolic links

commented Jul 18, 2018

@basil59, I agree with you, but looking at www.askubuntu.com stack exchange reference below shows that libgtest-dev is now stored in /usr/src/googletest/googletest. So it might be a good idea to make symbolic links to googletest folder. Of course, I could be wrong, and this would be dependent on the package you are trying to use gtest for, and may require you to just use /usr/local/lib/gtest.

Reference to answer for 17.04 and 18.04 libgtest-dev: https://askubuntu.com/a/145913

Then do:

commented Jan 28, 2019

@basil59, I agree with you, but looking at www.askubuntu.com stack exchange reference below shows that libgtest-dev is now stored in /usr/src/googletest/googletest. So it might be a good idea to make symbolic links to googletest folder. Of course, I could be wrong, and this would be dependent on the package you are trying to use gtest for, and may require you to just use /usr/local/lib/gtest.

Reference to answer for 17.04 and 18.04 libgtest-dev: https://askubuntu.com/a/145913

Then do:

Thank for your summary, It works very well. 😄

commented Apr 10, 2019

Excellent @pareshBloomA! Thanks!

commented Aug 5, 2019
edited

It is (almost) never a good idea to install files by moving them into /usr/* directories.
As a good practice, also create a build directory so the source directory does not get messed up.

commented Aug 20, 2019

Install Dev C++ In Ubuntu Using Terminal

It is (almost) never a good idea to install files by moving them into /usr/* directories.
As a good practice, also create a build directory so the source directory does not get messed up.

the build dir can be put anywhere, such as /tmp/build or ~/build

commented Aug 20, 2019

That's even better. Just don't forget that, if you did not change the CMAKE_INSTALL_PREFIX, sudo is still needed to install via sudo make install.

commented Jan 31, 2020

I have no 'install' target by compiling /usr/src/gtest in ubuntu 19.04 (I did sudo apt-get install -y lgoogletest ibgtest-dev cmake)

Install Dev C++ Linux Ubuntu

commented Jan 31, 2020

Install Dev C++ Di Ubuntu

Hello guys, I've managed to install GTest & Gmock from the git repo:
https://gist.github.com/dlime/313f74fd23e4267c4a915086b84c7d3d

Install Dev C++ On Ubuntu 10

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment