fluxengine
fluxengine copied to clipboard
lib/dataspec.cc:45:29: error: use of ‘data’ before deduction of ‘auto’
Hi! Exciting project. I get a compilation error on Linux Mint 18.3 in master and also when checking out the dev tag. Is there another branch/tag I should use?
[9/292] CXX lib/dataspec.cc
FAILED: .obj/dbg/lib/dataspec.o
g++ --std=c++14 -ffunction-sections -fdata-sections -I/usr/include/libusb-1.0 -Ilib -Idep/fmt -Iarch -O0 -g -I. -c -o .obj/dbg/lib/dataspec.o lib/dataspec.cc -MMD -MF .obj/dbg/lib/dataspec.o.d
lib/dataspec.cc: In static member function ‘static std::set<unsigned int> DataSpec::parseRange(const string&)’:
lib/dataspec.cc:45:29: error: use of ‘data’ before deduction of ‘auto’
for (auto& data : split(data, ","))
^
[14/292] CXX arch/f85/decoder.cc
ninja: build stopped: subcommand failed.
Makefile:42: recipe for target 'all' failed
make: *** [all] Error 1
Here's some info about my build environment:
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 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.
$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 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.
$ apt show libusb-1.0-0-dev
Package: libusb-1.0-0-dev
Version: 2:1.0.20-1
That is in fact a bug; the whole dataspec.cc file is going away entirely in the massive rework I'm currently doing. If you're interested in trying it out, see the protobuf branch.
(I'm not sure how this ever worked, TBH.)
This should be obsolete now?