Блог пользователя Qualified

Автор Qualified, история, 6 лет назад, По-английски

The title says it all...

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

First, navigate to the stdc++.h file. This will be located at a directory similar to C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++\mingw32\bits. Right click while pressing Shift to open a Powershell/cmd window there. Run the command g++ -std=c++17 stdc++.h, to compile the header. Take care to use the same flags you used in your build system(i.e use c++14 in command if you have build up of c++14). Check to make sure that the stdc++.h.gch file was created in the directory. Also,use "bits/stdc++.h" instead of <bits/stdc++.h> in header

»
5 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

For Linux Users
For Windows Users

Then run this command g++ -std=c++17 stdc++.h in your terminal or cmd, it will create stdc++.h.gch file. That's all. It will boost your compile time 8x faster.