You are not logged in. Please login at to post your questions!


How to add bits/stdc++.h in Dev C++

I guess the #inlude<bits stdc++.h=""> is not present for Dev C++. Can anyone please help me out? Is there anyway in which we can do it manually?

asked 07 Mar '14, 09:12

bipin2's gravatar image

accept rate: 8%

bits/stdc++.h is only usable in GCC versions (around > 4.2 or something like that).

That being said latest mingw (GCC's windows port) does have that option.

So either install and IDE that uses latest mingw by default (for example : CodeBlocks) or install devCPP and then seperately download latest mingw and install it (it's easily googlable how to do).

Another option is installing Cygwin which comes with GCC.

PS Note that your problem has nothing to do with devcpp, it only has to do with the fact that devcpp (probably) uses ancient version of mingw by default.


answered 09 Mar '14, 16:07

c0d3junki3's gravatar image

accept rate: 13%

edited 09 Mar '14, 16:08

Dev-C++ should use g++, right? It should be possible to include it directly by typing


(not with a billion typos like you did)

If it doesn't work, try installing Cygwin (I suppose you're on Windows) and compiling there.


answered 08 Mar '14, 00:16

xellos0's gravatar image

accept rate: 10%

Yea i am using Windows.... The problem is that it seems like that this Dev C++ has not been updated since it has been created....So even though it is g++ the bits/stdc++,h is not included in the header file list....I asked is there any-way in which we can create our own header file....I know it is possible...but don't know how it is done...:( shall i just create a header file of this name and add all the header files there and save it in the bin folder and simply call in the programme ??

(08 Mar '14, 10:10) bipin23★

You could. Or, as I said, you could just install Cygwin, which does have that header file, and compile with it instead of Dev-C++.

(08 Mar '14, 16:43) xellos07★

then here


answered 08 Mar '14, 10:19

garakchy's gravatar image

accept rate: 1%


answered 02 Apr '14, 17:29

tojochacko's gravatar image

2★tojochacko ♦
accept rate: 42%

could you please explain me the use of this library:-#inlude bits stdc++.h="". thanks


answered 16 Jun '14, 22:11

tabans's gravatar image

accept rate: 0%

It includes all the necessary header files check in this link

We need not add all the header files while taking part in a contest.This will help us save time.. Happy Coding

(17 Jun '14, 10:14) bipin23★

not sure, but still suggest you to look at here:


answered 07 Mar '14, 23:55

garakchy's gravatar image

accept rate: 1%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 07 Mar '14, 09:12

question was seen: 11,237 times

last updated: 17 Jun '14, 10:14