Однако при попытке компиляции с флагами -std=c++11 -std=gnu++11 я получаю повторения ошибок
Код: Выделить всё
cc1plus: error: unrecognized command line option `-std=c++11`
cc1plus: error: unrecognized command line option `-std=gnu++11`
Код: Выделить всё
DeviceInfo.cpp:22: error: expected initializer before ‘:’ token
Код: Выделить всё
for (cl::Platform& plat : platforms)
Любая помощь?
Подробнее здесь: https://stackoverflow.com/questions/164 ... cc-g-4-4-6