Closed photoszzt closed 3 years ago
Can you send me the compiler version and flags?
compiler version:
c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
flags: (they are generated by cmake. I exclude the -I parts)
/usr/bin/c++ -O3 -DNDEBUG -fPIE -g -Wall -Wextra -pedantic -Wno-write-strings -std=c++1z -MD -MT worker/demo/CMakeFiles/demo-manager.dir/manager.cpp.o -MF CMakeFiles/demo-manager.dir/manager.cpp.o.d -o CMakeFiles/demo-manager.dir/manager.cpp.o -c /source/worker/demo/manager.cpp
I'm guessing it may be a bug or too old compiler, can you try with version 10 just to be sure?
Isee that you are running ubuntu 18 so:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install g++-10
Thanks. g++-10 solves the problem.
I hit the following error when I compile with cxx 17 but without error using cxx 14.