I tried to use some stream codes, and I used the quick_exit function to end the program without clearing the resource, below is my code.
#include<future>
compilation using gcc 5.3.0 and the command i used
g++ -std=c++11 pracrise.cpp -lpthread
stream model: posix
I am missing nothing that I opened the cstdlib header file there quick_exit .
C:\Program Files\mingw64>g++ -std=c++11 pracrise.cpp -lpthread pracrise.cpp: In function 'int main()': pracrise.cpp:25:15: error: 'quick_exit' was not declared in this scope quick_exit(0); ^
source share