### bkrtoni's blog

By bkrtoni, history, 4 years ago,

We all know stdc++.h lib that includes all libs in c++ But we can't use it in visual studio so i know a way to use it in visual studio , and this may help any one using VS and want to use stdc++.h

### Second thing

Copy the stdc++.h file Go to DIR C:\Program Files\Microsoft Visual Studio 12.0\VC\include\ Create new folder here and name it bits then paste stdc++.h inside the folder

### Last thing

Open VS , make c++ project and try the Lib #include<bits/stdc++.h>

• +20

 » 3 years ago, # |   0 still, the compiler does not recognize the library after following above steps
•  » » 3 years ago, # ^ | ← Rev. 3 →   +5 It worked for me. Make sure you are putting the header file in a "bits" folder inside a Visual Studio Include directory (for newer versions of Visual Studio, this is stored in the INCLUDE environment variable... you can type echo %INCLUDE% in a command prompt to view it).
•  » » » 3 years ago, # ^ |   0 Thank you anyway, I appreciate your effort
 » 3 years ago, # | ← Rev. 2 →   -8 for Visual studio 2017 users .. you can add bits folder to this path:C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include
 » 3 years ago, # |   0 The console terminates immediately after printing output. How to stop it like Codeblocks console ?
•  » » 3 years ago, # ^ |   0 CTRL+F5 or use this function system('pause');
•  » » » 3 years ago, # ^ |   0 Thanks :)