Programming with the Dev C IDE. 1 Introduction to the IDE. Dev-C is a full-featured Integrated Development Environment (IDE) for the C/C programming language. As similar IDEs, it offers to the programmer a simple and unified tool to edit, compile, link, and debug programs.

  • Sep 25, 2015 Dev C First Program in Urdu 1st Program Start Coding - Duration: 8:56. Pak Academy79 21,427 views.
  • The g command actually runs the same compiler as gcc, but with different options directing it to compile C. (You can compile C programs with the gcc command if you know a bunch of obscure options to type on the command line, or you can just let g do it for you.).

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?

Running Dev-C blreichenau For programming assignments that include one file (e.g. Prog1.cpp): Start Dev-C. Double click the shortcut on the desktop or; from the Start button: Open a new source file. From the menu bar: File New Source File (Ctrl+N) or; From the Specials Toolbar, click the New button. Follow Peggy Fisher as she explains how to get started with C, a core programming language. Using C 11, Peggy covers the basics such as how to compile and run C programs, and how to create variables. She also dives into working with data, as well as decision statements, creating functions, and using arrays.

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.

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:

Dev C++ Running Different Program

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:

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:

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.

Dev C Running Different Program In Excel

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.

And run it using command:

Dev C Running Different Program In Word

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

Have a Good day!!

Share
  • Latest Version:

    DEV-C++ 5.11 LATEST

  • Requirements:

    Windows XP / Vista / Windows 7 / Windows 8 / Windows 10

  • Author / Product:

    Bloodshed Software / DEV-C++

  • Old Versions:

  • Filename:

    Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe

  • MD5 Checksum:

    581d2ec5eff634a610705d01ec6da553

  • Details:

    DEV-C++ 2020 full offline installer setup for PC 32bit/64bit

DEV-C++ is a fully-featured integrated development environment (IDE) for creating, debugging and creating applications written in a popular C++ programming language. Even though tools for the development of C++ software have undergone countless upgrades over the years, a large number of developers located all around the world have expressed a wish to continue using DEV-C++. This IDE platform has proven itself as highly reliable and intuitive, giving developers access to all of their necessary tools, in-depth debugging, and most importantly, a stable error-free environment for the development of apps of all sizes – from small school tasks to large business projects intended for both internal and public use.
The app is an open-source IDE environment, offering software solutions and the necessary tools for C++ Runningapp development. However, be aware that its toolset is focused more on novices and basic programming, and that open source community has not updated its toolset for a considerable time. Still, what is present in its latest version represents a highly-capable C++ IDE that could be used for years without encountering any issue.
If you are a novice, are a student who wants to create C++ project in a stable and easy to use software environment, or even if you are a seasoned programmer who wants to access C++ programming inside small IDE that will not strain your computer resources, DEV-C++ represents a perfect choice. It has all the required tools and feature sets for creating small to mid-sized apps.
It runs on all modern versions of Windows and can be used without any restrictions for free. It was originally developed as an open-source fork of the Bloodshed Dev-C++ IDE.
Installation and Use
Even though DEV-C++ is filled with advanced compiler, debugger and a wide array of dev tools, it’s installation package is quite small (only around 50 MB) and therefore can be easily installed on any modern Windows PC or laptop. Just follow the onscreen instructions, and in mere seconds DEV C plus plus will be ready for running. Other more developed modern IDE environments, on the other hand, require much more storage space, and their installation can run for minutes.

Dev C++ Program Download

Once up and running, you will be welcomed in a user-friendly interface that can be additionally customized to better fit your needs. The main window of the app follows the basic structure of many other modern IDE environments, with top row of dropdown menus and buttons that are shortcuts to its many built-in tools, a large vertical three-tabbed area for managing Projects, Classes and Debug listings, and of course, the main project area (with support for tabs) where you can start programming your apps. Both the app and the current project can be customized extensively. App Options window features tabs for Genera, Fonts, Colors, Code Insertion, Class Browsing, and Autosave customizations. Environment Options feature tabs for General, Directories, External Programs, File Associations, and CVS support customization.
Features and Highlights
  • Fully-featured IDE for developing C++ apps.
  • User-friendly interface with many tools for managing project development.
  • Resource-light and unobtrusive feature set.
  • Focused on novices and mid-level programmers who want stability and reliability.
  • Powerful compiler and debugger.
  • Compatible with all the modern versions of Windows OS

Dev Program Download


Coments are closed
Scroll to top