Dev-c++ Linux Debian

In this brief tutorial, we will be discussing how to install development tools in Linux distributions such as Arch Linux, CentOS, RHEL, Fedora, Debian, Ubuntu, and openSUSE etc. These development tools includes all necessary applications, such as GNU GCC C/C++ compilers, make, debuggers, man pages and others which are needed to compile and build new software and packages.

  1. Linux Debian Vs Mint
  2. Dev C++ Linux
  3. Debian Download
  4. Debian Linux Iso
  5. Linux Ubuntu
  1. MySQL Connector for C (development files) MySQL Connector/C is a MySQL database connector for C. It mimics the JDBC 4.0 API. This package contains the development files (headers, static library). Tags: Software Development: Libraries, Role: Development Library.
  2. Jan 11, 2020  This brief tutorial explains how to compile and run C/C programs in GNU/Linux operating system. If you’re a student or a new Linux user coming from Microsoft platform, then you might be wondering how to run the C or C programs in a Linux distribution. Because, compiling and running code in Linux platforms is little bit different than Windows.
  3. I want to expand my programming horizons to Linux. A good, dependable basic toolset is important, and what is more basic than an IDE? I could find these SO topics: Lightweight IDE for linux and; What tools do you use to develop C applications on Linux? I'm not looking for a lightweight IDE. If an IDE is worth the money, then I will pay for it.
Dev

Dev-C is a full-featured Integrated Development Environment (IDE) for the C/C programming language. It uses Mingw port of GCC (GNU Compiler Collection) as its compiler. It creates native Win32 executables, either console or GUI. Dev-C can also be used in combination with Cygwin.

DownloadFree eBook: “Bootstrap Programming Cookbook”

Install Development Tools In Linux

The developer tools can be installed either individually one by one or all at once. We are going to install all at once to make things much easier.

1. Install Development Tools In Arch Linux and derivatives

To install development tools in Arch Linux and its derivatives like Antergos, Manjaro Linux, just run:

The above command will install the following package(s) in your Arch-based systems.

  1. autoconf
  2. automake
  3. binutils
  4. bison
  5. fakeroot
  6. file
  7. findutils
  8. flex
  9. gawk
  10. gcc
  11. gettext
  12. grep
  13. groff
  14. gzip
  15. libtool
  16. m4
  17. make
  18. pacman
  19. patch
  20. pkg-config
  21. sed
  22. sudo
  23. texinfo
  24. util-linux
  25. which

Just hit ENTER to install all of them.

If you want to install to a specific package group, just type its number and hit ENTER to continue installation.

2. Install Development Tools In RHEL, CentOS

To install development tools in Fedora, RHEL and its clones such as CentOS, Scientific Linux, run the following commands as root user.

The above command is going to install all necessary developer tools, such as:

  1. autoconf
  2. automake
  3. bison
  4. byacc
  5. cscope
  6. ctags
  7. diffstat
  8. doxygen
  9. elfutils
  10. flex
  11. gcc/gcc-c++/gcc-gfortran
  12. git
  13. indent
  14. intltool
  15. libtool
  16. patch
  17. patchutils
  18. rcs
  19. subversion
  20. swig

3. Install Development Tools In Debian, Ubuntu and derivatives

To install required developer tools in DEB based systems, run:

This command will all necessary packages to setup the development environment in Debian, Ubuntu and its derivatives.

  1. binutils
  2. cpp
  3. gcc-5-locales
  4. g++-multilib
  5. g++-5-multilib
  6. gcc-5-doc
  7. gcc-multilib
  8. autoconf
  9. automake
  10. libtool
  11. flex
  12. bison
  13. gdb
  14. gcc-doc
  15. gcc-5-multilib
  16. and many.

You now have the necessary development tools to develop a software in your Linux box.

If you don’t like this method to install the development tools, there is also a script named “mangi script” available to easily setup development environment in DEB based systems such as Ubuntu, Linux Mint and other Ubuntu derivatives. For more details, refer the following guide.

4. Install Development Tools In openSUSE/SUSE

To setup development environment in openSUSE and SUSE enterprise, run the following commands as root user:

Verifying Installation

Now, Let us verify the develop tools have been installed or not. To do so, run:

As you see in the above output, the development tools have been successfully installed. Start developing your applications!

Suggested read:

Thanks for stopping by!

Help us to help you:

  • Subscribe to our Email Newsletter : Sign Up Now
  • Support OSTechNix : Donate Via PayPal
  • Download free E-Books and Videos : OSTechNix on TradePub
  • Connect with us: RedditFacebookTwitterLinkedInRSS feeds

Have a Good day!!

Share

This brief tutorial explains how to compile and run C/C++ programs in GNU/Linux operating system. If you’re a student or a new Linux user coming from Microsoft platform, then you might be wondering how to run the C or C++ programs in a Linux distribution. Because, compiling and running code in Linux platforms is little bit different than Windows. Let us get started, shall we?

Setup Development Environment

As you may already know, we need to install the necessary tools and compilers to run the code, right? Yes! Refer the following guide to install all development tools in your Linux box.

The development tools includes all necessary applications, such as GNU GCC C/C++ compilers, make, debuggers, man pages and others which are needed to compile and build new software, packages etc.

Also, there is a script named ‘manji’ that helps you to setup a complete environment in Ubuntu-based systems.

After installing the necessary development tools, verify them using any one of the following commands:

These commands will display the installation path and version of gcc compiler.

Compile And Run C, C++ Programs In Linux

First, let us see how to compile and run a simple program written in C language.

Compile And Run C Programs

Write your code/program in your favorite CLI/GUI editor.

I am going to write my C program using nano editor.

Note: You need to use extension .c for C programs or .cpp for C++ programs.

Tuner

Copy/paste the following code:

Press Ctrl+O and Ctrl+X to save and quit the file.

To compile the program, run:

Or,

If there are any syntax or semantic errors in your code/program, they will be displayed. You need to fix them first to proceed further. If there is no error then the compiler will successfully generate an executable file named ostechnix in the current working directory.

Finally, execute the program using command:

You will see an output like below:

To compile multiple source files (Eg. source1 and source2) into executable, run:

To allow warnings, debug symbols in the output:

Linux Debian Vs Mint

To compile the source code into Assembler instructions:

To compile the source code without linking:

The above command will create a executable called source.o.

If your program contains math functions:

For more details, refer the man pages.

Compile And Run C++ Programs

Write your C++ program in any editor of your choice and save it with extension .cpp.

Here is a simple C++ program.

To compile this C++ program in Linux, simply run:

The Receive Window Auto-Tuning feature is enabled for HTTP traffic if the TcpAutotuning registry entry is set to 1. The Receive Window Auto-Tuning feature is not enabled for HTTP traffic if the TcpAutotuning registry entry does not exist or if it is set to a value that is not 1. Receive window auto-tuning level highly restricted 2.

Dev C++ Linux

If there were no errors, you can run this C++ program under Linux using command:

Sample output would be:

Alternatively, we can compile the above C++ program using “make” command like below.

Did you notice? I didn’t use .cpp extension in the above command to compile the program. It is not necessary to use the extension to compile C++ programs using make command.

Debian Download

And run it using command:

For more details, refer man pages.

Hope this helps.

Thanks for stopping by!

Help us to help you:

  • Subscribe to our Email Newsletter : Sign Up Now
  • Support OSTechNix : Donate Via PayPal
  • Download free E-Books and Videos : OSTechNix on TradePub
  • Connect with us: RedditFacebookTwitterLinkedInRSS feeds

Debian Linux Iso

Have a Good day!!

Linux Ubuntu

Share