I'm trying to work with C++11 on my eclipse (using mac); I have upgraded the gcc to 4.7 and wrote the simple code in the picture below. As you can see, there's a red line below the
thread t1(call_from_thread);
t1.join();
and there's a worrning message (yellow) under the
#include <thread>
This compiles and run despite the errors/warning. I'd like to know why do I still get those errors?
Note:
- My settings on the Cross G++ compiler's and Linker's command is: /opt/local/bin/g++
- I'm writing this after reading http://www.eclipse.org/forums/index.php/mv/msg/282618/787571/ and trying to circumvent this issue with GXX_EXPERIMENTAL_CXX0X I'm still with the same error message
- I also tried on both juno and Indigo
Thanks