How use std::thread in C++Builder?

96 Views Asked by At

I wrote a test console application in C++Builder using std::thread. The compilation succeeded, but the build failed. Here are the errors:

[ilink32 Error] Error: Unresolved external '__Thrd_id' referenced from C:\USERS\D7D1C\DOCUMENTS\C++BUILDER\POLIGON\CONSOLEC++\WIN32\DEBUG\MAIN.OBJ
[ilink32 Error] Error: Unresolved external '__Thrd_join' referenced from C:\USERS\D7D1C\DOCUMENTS\C++BUILDER\POLIGON\CONSOLEC++\WIN32\DEBUG\MAIN.OBJ
[ilink32 Error] Error: Unresolved external 'std::_Throw_Cpp_error(int)' referenced from C:\USERS\D7D1C\DOCUMENTS\C++BUILDER\POLIGON\CONSOLEC++\WIN32\DEBUG\MAIN.OBJ
[ilink32 Error] Error: Unable to perform link

Is there a way to compile the program? I know about the TThread class, but I wanted to use std::thread.

0

There are 0 best solutions below