Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <thread>
  2.  
  3. int main(void)
  4. {
  5. std::thread t;
  6. return 0;
  7. }
  8.  
  9. test.cpp: In function ‘int main()’:
  10. test.cpp:6:5: error: ‘thread’ is not a member of ‘std’
  11. std::thread t;
  12. ^~~
  13.  
  14. $ g++ test.cpp -H
  15. . /home/nathan/development/toolchain/gnu/x86_64-unknown-linux-gnu/include/c++/6.2.0/thread
  16.  
  17. $ gcc -v
  18. Using built-in specs.
  19. COLLECT_GCC=gcc
  20. COLLECT_LTO_WRAPPER=/home/nathan/development/toolchain/gnu/x86_64-unknown-linux-gnu/libexec/gcc/x86_64-pc-linux-gnu/6.2.0/lto-wrapper
  21. Target: x86_64-pc-linux-gnu
  22. Configured with: ../gcc/configure --prefix=/home/nathan/development/toolchain/gnu/x86_64-unknown-linux-gnu --enable-languages=c,c++,fortran --disable-multilib
  23. Thread model: posix
  24. gcc version 6.2.0 (GCC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement