Home » U++ Library support » U++ MT-multithreading and servers » standard thread ( error: 'thread' was not declared in this scope)
|
Re: standard thread [message #46720 is a reply to message #46719] |
Wed, 20 July 2016 11:39   |
|
Hi ratah,
Quick guess: Are you building with C++11? Check if you have --std=c++11 compiler option in your build method. Also, what compiler are you using? Some older GCC had only partial support for C++11, that could cause similar problem.
Best regards,
Honza
|
|
|
|
Re: standard thread [message #46725 is a reply to message #46721] |
Wed, 20 July 2016 17:13   |
|
ratah wrote on Wed, 20 July 2016 14:27I do use the default compiler which is part of the upp package.
MinGW-W64-builds-4.2.0
Oops, that is the problem. Reasonable support of C++11 is available only since 4.7...
The mingw in bundled builds will have to be upgraded. It doesn't make any sense to put non-C++11 compiler to sources that require C++11 
Honza
|
|
|
Re: standard thread [message #46727 is a reply to message #46725] |
Wed, 20 July 2016 20:08   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
Your thread code seems to compile fine on my setup (Windows 10 + latests U++ with bundled compiler). Can I ask you something - what is your version of upp?
Please notice that currently in prototable version we bundle compiler that is consistent with C++11.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Wed, 20 July 2016 20:08] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri May 09 15:47:34 CEST 2025
Total time taken to generate the page: 0.02603 seconds
|