Board index FlightGear Support Compiling

err: ‘shared_mutex’ in namespace ‘std’ does not name a type

Building FlightGear from source, and in the need for help?

err: ‘shared_mutex’ in namespace ‘std’ does not name a type

Postby MariuszXC » Sun Jun 27, 2021 11:44 am

Tried to compile 'next'. Compilation failed with an error message
Code: Select all
error: ‘shared_mutex’ in namespace ‘std’ does not name a type

Quick google lookup brought this answer https://stackoverflow.com/questions/362 ... ilable-yet and indeed, upgrading gcc as described here http://tuxamito.com/wiki/index.php/Inst ... _in_Ubuntu solved the issue.

My point is, that if code relies on features not available in older versions of the compiler, perhaps a version/feature check should be added to the configuration stage?
INOP
MariuszXC
 
Posts: 1061
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Return to Compiling

Who is online

Users browsing this forum: No registered users and 5 guests