Problem | helloworld |
---|---|
User | 0rang3 |
Submission Time | 2023-02-23 00:11:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
/usr/bin/ld: /tmp/ccLpm28A.o: in function `std::thread::thread<int (&)(), , void>(int (&)())':
helloworld.cpp:(.text._ZNSt6threadC2IRFivEJEvEEOT_DpOT0_[_ZNSt6threadC5IRFivEJEvEEOT_DpOT0_]+0x44): undefined reference to `pthread_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.a(thread.o): in function `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())':
(.text._ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE+0x15): undefined reference to `pthread_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.a(thread.o): in function `std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)())':
(.text._ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEEPFvvE+0x68): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status