evanbowman / blind-jump

A procedurally generated space action adventure game
BSD 2-Clause "Simplified" License
82 stars 16 forks source link

std' does not name a type #19

Open tsukoyumi opened 3 years ago

tsukoyumi commented 3 years ago

i've been trying to compile this game with a program i wrote but this error comes up

src/soundController.hpp:44:10: error: 'mutex' in namespace 'std' does not name a type std::mutex soundsGuard;

evanbowman commented 3 years ago

Try adding #include to the top of the file. Sometimes different compiles will parse includes differently, or differing implementations of the standard library headers will themselves not include another header, resulting in code that compiles successfully on one computer, but not on another.

On Fri, Jan 1, 2021 at 9:41 PM tsukoyumi notifications@github.com wrote:

i've been trying to compile this game with a program i wrote but this error comes up

src/soundController.hpp:44:10: error: 'mutex' in namespace 'std' does not name a type std::mutex soundsGuard;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evanbowman/blind-jump/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC22KQHQMX5VNOYYFJ57J53SX2BU5ANCNFSM4VQW2J4Q .