cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

portability with llvm's libc++ on Linux #2231

Closed faerryn closed 3 years ago

faerryn commented 3 years ago

added #include <array> in src/cinder/app/Linux/PlatformLinux.cpp

LLVM's libc++ requires that this be included to compile. I tested this on a Linux machine.

The reason for this is src/cinder/app/Linux/PlatformLinux.cpp:496, where an std::array is used. On stdlibc++, it seems that std::array is somehow included already in one of the standard headers; not so on libc++.