During thread programming, the compiler broadcasts
Terminate called after throwing an instance of ‘STD ::system_error’
you are able to terminate called br> what(): Unknown error-1
Aborted (core dumped)
and add the -pthread option. G++ -std=c++11 -pthread thread_demo.cpp-o demo.
When Clion compiles, this error is reported. You need to modify the compile option at cmakelists. TXT.
Read More:
- C++: terminate called after throwing an instance of ‘std::length_error‘ (sort function cmp sorting rules problem)
- Runtime error: terminate called after throwing an instance of ‘STD:: Logic_ error’
- How to Fix distributed training report terminate called after throwing an instance of’std::length_error’
- C# Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type
- The C compiler identification is unknown
- VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution
- error C2784: ‘bool std::operator <(const std::_Tre
- Error when accessing Oracle: connected to an idle instance
- STOP: c000021a { Fatal System Error } the initial session process or system process terminated …
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- Error c2259 cannot instance abstract class due to following members
- The garbage plug-in mixed in chrome causes an error in the front-end JS operation: only one instance of Babel Polyfill is allowed
- Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dl
- (Emitted value instead of an instance of Error) Error compiling template:
- DB2 sql5005c system exception
- The C compiler identification is unknown solution
- Solution to msxml3.dll error ‘800c0008’ the system cannot locate the resource specified
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)