Created
April 17, 2017 20:11
-
-
Save TimRepke/f13bbb74f34d4c97d10742601a4a0406 to your computer and use it in GitHub Desktop.
Valhalla Compile Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tim@klapprechner ~/workspace/satnavpi/valhalla (git)-[2.1.8] % ./autogen.sh :( | |
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'. | |
libtoolize: copying file './ltmain.sh' | |
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. | |
libtoolize: copying file 'm4/libtool.m4' | |
libtoolize: copying file 'm4/ltoptions.m4' | |
libtoolize: copying file 'm4/ltsugar.m4' | |
libtoolize: copying file 'm4/ltversion.m4' | |
libtoolize: copying file 'm4/lt~obsolete.m4' | |
configure.ac:9: installing './compile' | |
configure.ac:7: installing './missing' | |
Makefile.am: installing './depcomp' | |
./autogen.sh 8.66s user 0.35s system 76% cpu 11.776 total | |
tim@klapprechner ~/workspace/satnavpi/valhalla (git)-[2.1.8] % CFLAGS=-I$HOME/workspace/satnavpi/libs/include LDFLAGS=-L$HOME/workspace/satnavpi/libs/lib PKG_CONFIG_PATH=$HOME/workspace/satnavpi/libs/lib/pkgconfig ./configure --prefix=$HOME/workspace/satnavpi/libs | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking whether make supports nested variables... yes | |
checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking how to print strings... printf | |
checking for style of include used by make... GNU | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking whether gcc understands -c and -o together... yes | |
checking dependency style of gcc... gcc3 | |
checking for a sed that does not truncate output... /usr/bin/sed | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for fgrep... /usr/bin/grep -F | |
checking for ld used by gcc... /usr/bin/ld | |
checking if the linker (/usr/bin/ld) is GNU ld... yes | |
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B | |
checking the name lister (/usr/bin/nm -B) interface... BSD nm | |
checking whether ln -s works... yes | |
checking the maximum length of command line arguments... 1572864 | |
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop | |
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop | |
checking for /usr/bin/ld option to reload object files... -r | |
checking for objdump... objdump | |
checking how to recognize dependent libraries... pass_all | |
checking for dlltool... no | |
checking how to associate runtime and link libraries... printf %s\n | |
checking for ar... ar | |
checking for archiver @FILE support... @ | |
checking for strip... strip | |
checking for ranlib... ranlib | |
checking command to parse /usr/bin/nm -B output from gcc object... ok | |
checking for sysroot... no | |
checking for a working dd... /usr/bin/dd | |
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 | |
checking for mt... no | |
checking if : is a manifest tool... no | |
checking how to run the C preprocessor... gcc -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for dlfcn.h... yes | |
checking for objdir... .libs | |
checking if gcc supports -fno-rtti -fno-exceptions... no | |
checking for gcc option to produce PIC... -fPIC -DPIC | |
checking if gcc PIC flag -fPIC -DPIC works... yes | |
checking if gcc static flag -static works... yes | |
checking if gcc supports -c -o file.o... yes | |
checking if gcc supports -c -o file.o... (cached) yes | |
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes | |
checking whether -lc should be explicitly linked in... no | |
checking dynamic linker characteristics... GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
checking whether stripping libraries is possible... yes | |
checking if libtool supports shared libraries... yes | |
checking whether to build shared libraries... yes | |
checking whether to build static libraries... no | |
checking whether make supports nested variables... (cached) yes | |
checking for g++... g++ | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether g++ accepts -g... yes | |
checking dependency style of g++... gcc3 | |
checking how to run the C++ preprocessor... g++ -E | |
checking for ld used by g++... /usr/bin/ld -m elf_x86_64 | |
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes | |
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes | |
checking for g++ option to produce PIC... -fPIC -DPIC | |
checking if g++ PIC flag -fPIC -DPIC works... yes | |
checking if g++ static flag -static works... yes | |
checking if g++ supports -c -o file.o... yes | |
checking if g++ supports -c -o file.o... (cached) yes | |
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes | |
checking dynamic linker characteristics... (cached) GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
checking whether make sets $(MAKE)... (cached) yes | |
checking for ANSI C header files... (cached) yes | |
checking whether g++ supports C++11 features by default... yes | |
checking whether gcc is Clang... no | |
checking whether pthreads work with -pthread... yes | |
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE | |
checking whether more special flags are required for pthreads... no | |
checking for PTHREAD_PRIO_INHERIT... yes | |
checking for protoc... /usr/bin/protoc | |
checking for protoc... yes | |
checking for protobuf headers... yes | |
checking for -lprotobuf... yes | |
checking for boostlib >= 1.54... yes | |
checking whether the Boost::Program_Options library is available... yes | |
checking for exit in -lboost_program_options... yes | |
checking whether the Boost::System library is available... yes | |
checking for exit in -lboost_system... yes | |
checking whether the Boost::Thread library is available... yes | |
checking for exit in -lboost_thread... yes | |
checking whether the Boost::Filesystem library is available... yes | |
checking for exit in -lboost_filesystem... yes | |
checking whether the Boost::Regex library is available... yes | |
checking for exit in -lboost_regex... yes | |
checking whether the Boost::Date_Time library is available... yes | |
checking for exit in -lboost_date_time... yes | |
checking whether the Boost::IOStreams library is available... yes | |
checking for exit in -lboost_iostreams... yes | |
checking for python... /usr/bin/python | |
checking for a version of Python >= '2.1.0'... yes | |
checking for a version of Python >= '2.7'... yes | |
checking for the distutils Python package... yes | |
checking for Python include path... -I/usr/include/python3.6m | |
checking for Python library path... -L/usr/lib -lpython3.6m | |
checking for Python site-packages path... /usr/lib/python3.6/site-packages | |
checking python extra libraries... -lpthread -ldl -lutil -lm | |
checking python extra linking flags... -Xlinker -export-dynamic | |
checking consistency of all components of python development environment... yes | |
checking whether /usr/bin/python version is >= 2.7... yes | |
checking for /usr/bin/python version... 3.6 | |
checking for /usr/bin/python platform... linux | |
checking for /usr/bin/python script directory... ${prefix}/lib/python3.6/site-packages | |
checking for /usr/bin/python extension module directory... ${exec_prefix}/lib/python3.6/site-packages | |
checking whether the Boost::Python library is available... yes | |
checking whether boost_python is the correct library... no | |
checking whether boost_python is the correct library... (cached) no | |
checking whether boost_python is the correct library... (cached) no | |
checking whether boost_python is the correct library... (cached) no | |
checking whether boost_python3 is the correct library... yes | |
checking for pkg-config... /usr/bin/pkg-config | |
checking pkg-config is at least version 0.9.0... yes | |
checking for a Lua interpreter with version >= 5.2... lua | |
checking for lua... /usr/bin/lua | |
checking for lua version... 5.3 | |
checking for lua platform... unknown | |
checking for lua script directory... ${prefix}/share/lua/5.3 | |
checking for lua module directory... ${exec_prefix}/lib/lua/5.3 | |
checking if LUA_VERSION is defined... yes | |
checking lua.h usability... yes | |
checking lua.h presence... yes | |
checking for lua.h... yes | |
checking lualib.h usability... yes | |
checking lualib.h presence... yes | |
checking for lualib.h... yes | |
checking lauxlib.h usability... yes | |
checking lauxlib.h presence... yes | |
checking for lauxlib.h... yes | |
checking luaconf.h usability... yes | |
checking luaconf.h presence... yes | |
checking for luaconf.h... yes | |
checking for Lua header version... 5.3 | |
checking if Lua header version matches 5.3... yes | |
checking if LUA_VERSION is defined... yes | |
checking for library containing exp... none required | |
checking for library containing dlopen... -ldl | |
checking for library containing lua_load... -llua | |
checking for SQLite3 library >= 3.0.0... yes | |
checking for geos-config... /usr/bin/geos-config | |
checking for geos libraries... checking geos/version.h usability... yes | |
checking geos/version.h presence... yes | |
checking for geos/version.h... yes | |
yes | |
checking if geos version is >= 3.0.0... yes | |
checking for LIBSPATIALITE... yes | |
checking for DEPS... yes | |
checking that generated files are newer than configure... done | |
configure: creating ./config.status | |
config.status: creating Makefile | |
config.status: creating libvalhalla.pc | |
config.status: creating valhalla/config.h | |
config.status: executing depfiles commands | |
config.status: executing libtool commands | |
CFLAGS=-I$HOME/workspace/satnavpi/libs/include LDFLAGS= PKG_CONFIG_PATH= 9.86s user 1.21s system 82% cpu 13.411 total | |
tim@klapprechner ~/workspace/satnavpi/valhalla (git)-[2.1.8] % make test -j1 | |
PROTOC proto/osmformat.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: osmformat.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/tripcommon.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: tripcommon.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/trippath.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: trippath.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: tripcommon.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/tile.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: tile.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: segment.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/segment.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: segment.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/fileformat.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: fileformat.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/directions_options.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: directions_options.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/tripdirections.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: tripdirections.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: tripcommon.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
PROTOC proto/transit.proto | |
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: transit.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) | |
mkdir -p /home/tim/workspace/satnavpi/valhalla/genfiles && cd /home/tim/workspace/satnavpi/valhalla && xxd -i -s +$(head -n 1 date_time/zonespec.csv | wc -c | xargs) date_time/zonespec.csv > /home/tim/workspace/satnavpi/valhalla/genfiles/date_time_zonespec.h | |
mkdir -p /home/tim/workspace/satnavpi/valhalla/genfiles && cd /home/tim/workspace/satnavpi/valhalla && xxd -i lua/graph.lua > /home/tim/workspace/satnavpi/valhalla/genfiles/graph_lua_proc.h | |
mkdir -p /home/tim/workspace/satnavpi/valhalla/genfiles && cd /home/tim/workspace/satnavpi/valhalla && xxd -i lua/admin.lua > /home/tim/workspace/satnavpi/valhalla/genfiles/admin_lua_proc.h | |
mkdir -p /home/tim/workspace/satnavpi/valhalla/genfiles && cd /home/tim/workspace/satnavpi/valhalla/locales && ./make_locales.sh *.json > /home/tim/workspace/satnavpi/valhalla/genfiles/locales.h | |
make check-am | |
make[1]: Entering directory '/home/tim/workspace/satnavpi/valhalla' | |
CXX src/midgard/libvalhalla_la-linesegment2.lo | |
src/midgard/linesegment2.cc: In instantiation of ‘float valhalla::midgard::LineSegment2<coord_t>::DistanceSquared(const coord_t&, coord_t&) const [with coord_t = valhalla::midgard::PointLL]’: | |
src/midgard/linesegment2.cc:225:16: required from here | |
src/midgard/linesegment2.cc:59:15: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::PointLL’ and ‘valhalla::midgard::Point2’) | |
closest = a_ + v * (n / d); | |
~~~~~~~~^~~~~~~~~~~~~~~~~~ | |
In file included from ./valhalla/midgard/linesegment2.h:8:0, | |
from src/midgard/linesegment2.cc:1: | |
./valhalla/midgard/pointll.h:15:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(const valhalla::midgard::PointLL&) | |
class PointLL : public Point2 { | |
^~~~~~~ | |
./valhalla/midgard/pointll.h:15:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘const valhalla::midgard::PointLL&’ | |
./valhalla/midgard/pointll.h:15:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(valhalla::midgard::PointLL&&) | |
./valhalla/midgard/pointll.h:15:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘valhalla::midgard::PointLL&&’ | |
src/midgard/linesegment2.cc: In instantiation of ‘bool valhalla::midgard::LineSegment2<coord_t>::Intersect(const valhalla::midgard::LineSegment2<coord_t>&, coord_t&) const [with coord_t = valhalla::midgard::PointLL]’: | |
src/midgard/linesegment2.cc:225:16: required from here | |
src/midgard/linesegment2.cc:104:13: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::PointLL’ and ‘valhalla::midgard::Point2’) | |
intersect = a_ + b * t; | |
~~~~~~~~~~^~~~~~~~~~~~ | |
In file included from ./valhalla/midgard/linesegment2.h:8:0, | |
from src/midgard/linesegment2.cc:1: | |
./valhalla/midgard/pointll.h:15:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(const valhalla::midgard::PointLL&) | |
class PointLL : public Point2 { | |
^~~~~~~ | |
./valhalla/midgard/pointll.h:15:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘const valhalla::midgard::PointLL&’ | |
./valhalla/midgard/pointll.h:15:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(valhalla::midgard::PointLL&&) | |
./valhalla/midgard/pointll.h:15:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘valhalla::midgard::PointLL&&’ | |
src/midgard/linesegment2.cc: In instantiation of ‘bool valhalla::midgard::LineSegment2<coord_t>::ClipToPolygon(const std::vector<coord_t>&, valhalla::midgard::LineSegment2<coord_t>&) const [with coord_t = valhalla::midgard::PointLL]’: | |
src/midgard/linesegment2.cc:225:16: required from here | |
src/midgard/linesegment2.cc:212:16: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>’ and ‘<brace-enclosed initializer list>’) | |
clip_segment = { a_ + c * t_in, a_ + c * t_out }; | |
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from src/midgard/linesegment2.cc:1:0: | |
./valhalla/midgard/linesegment2.h:19:7: note: candidate: valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>& valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>::operator=(const valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&) | |
class LineSegment2 { | |
^~~~~~~~~~~~ | |
./valhalla/midgard/linesegment2.h:19:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&’ | |
./valhalla/midgard/linesegment2.h:19:7: note: candidate: valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>& valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>::operator=(valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&&) | |
./valhalla/midgard/linesegment2.h:19:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&&’ | |
make[1]: *** [Makefile:4281: src/midgard/libvalhalla_la-linesegment2.lo] Error 1 | |
make[1]: Leaving directory '/home/tim/workspace/satnavpi/valhalla' | |
make: *** [Makefile:8964: check] Error 2 | |
make test -j1 6.37s user 0.33s system 97% cpu 6.834 total |
that is extremely odd. we were basically making use of constructor inheritance which became available in c++11... very confusing! ill try this out on a newer ubuntu (hopefully newer gcc) to see if that shows anything...
given that you are on arch, are you compiling gcc from source? if so is it possible there is some kind of gcc configuration flags that make this happen? sorry im really not an expert on arch!
I have the same problem with Ubuntu 17.04:
make install-am
make[1]: ingresso nella directory "/home/gianluca/Scaricati/valhalla"
CXX src/midgard/libvalhalla_la-linesegment2.lo
src/midgard/linesegment2.cc: In instantiation of ‘float valhalla::midgard::LineSegment2<coord_t>::DistanceSquared(const coord_t&, coord_t&) const [with coord_t = valhalla::midgard::PointLL]’:
src/midgard/linesegment2.cc:225:16: required from here
src/midgard/linesegment2.cc:59:15: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::PointLL’ and ‘valhalla::midgard::Point2’)
closest = a_ + v * (n / d);
~~~~~~~~^~~~~~~~~~~~~~~~~~
Have you any solutions? Otherwise, I try to change your source.
Same problem on Debian 8, gcc 6.3
make[1]: Entering directory '/home/eduardo/Software/valhalla'
CXX src/libvalhalla_la-worker.lo
CXX src/midgard/libvalhalla_la-linesegment2.lo
src/midgard/linesegment2.cc: In instantiation of ‘float valhalla::midgard::LineSegment2<coord_t>::DistanceSquared(const coord_t&, coord_t&) const [with coord_t = valhalla::midgard::PointLL]’:
src/midgard/linesegment2.cc:225:16: required from here
src/midgard/linesegment2.cc:59:15: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::PointLL’ and ‘valhalla::midgard::Point2’)
closest = a_ + v * (n / d);
~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from ./valhalla/midgard/linesegment2.h:8:0,
from src/midgard/linesegment2.cc:1:
./valhalla/midgard/pointll.h:16:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(const valhalla::midgard::PointLL&)
class PointLL : public Point2 {
^~~~~~~
./valhalla/midgard/pointll.h:16:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘const valhalla::midgard::PointLL&’
./valhalla/midgard/pointll.h:16:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(valhalla::midgard::PointLL&&)
./valhalla/midgard/pointll.h:16:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘valhalla::midgard::PointLL&&’
src/midgard/linesegment2.cc: In instantiation of ‘bool valhalla::midgard::LineSegment2<coord_t>::Intersect(const valhalla::midgard::LineSegment2<coord_t>&, coord_t&) const [with coord_t = valhalla::midgard::PointLL]’:
src/midgard/linesegment2.cc:225:16: required from here
src/midgard/linesegment2.cc:104:13: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::PointLL’ and ‘valhalla::midgard::Point2’)
intersect = a_ + b * t;
~~~~~~~~~~^~~~~~~~~~~~
In file included from ./valhalla/midgard/linesegment2.h:8:0,
from src/midgard/linesegment2.cc:1:
./valhalla/midgard/pointll.h:16:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(const valhalla::midgard::PointLL&)
class PointLL : public Point2 {
^~~~~~~
./valhalla/midgard/pointll.h:16:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘const valhalla::midgard::PointLL&’
./valhalla/midgard/pointll.h:16:7: note: candidate: valhalla::midgard::PointLL& valhalla::midgard::PointLL::operator=(valhalla::midgard::PointLL&&)
./valhalla/midgard/pointll.h:16:7: note: no known conversion for argument 1 from ‘valhalla::midgard::Point2’ to ‘valhalla::midgard::PointLL&&’
src/midgard/linesegment2.cc: In instantiation of ‘bool valhalla::midgard::LineSegment2<coord_t>::ClipToPolygon(const std::vector<coord_t>&, valhalla::midgard::LineSegment2<coord_t>&) const [with coord_t = valhalla::midgard::PointLL]’:
src/midgard/linesegment2.cc:225:16: required from here
src/midgard/linesegment2.cc:212:16: error: no match for ‘operator=’ (operand types are ‘valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>’ and ‘<brace-enclosed initializer list>’)
clip_segment = { a_ + c * t_in, a_ + c * t_out };
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/midgard/linesegment2.cc:1:0:
./valhalla/midgard/linesegment2.h:19:7: note: candidate: valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>& valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>::operator=(const valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&)
class LineSegment2 {
^~~~~~~~~~~~
./valhalla/midgard/linesegment2.h:19:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&’
./valhalla/midgard/linesegment2.h:19:7: note: candidate: valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>& valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>::operator=(valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&&)
./valhalla/midgard/linesegment2.h:19:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘valhalla::midgard::LineSegment2<valhalla::midgard::PointLL>&&’
Makefile:4610: recipe for target 'src/midgard/libvalhalla_la-linesegment2.lo' failed
make[1]: *** [src/midgard/libvalhalla_la-linesegment2.lo] Error 1
make[1]: Leaving directory '/home/eduardo/Software/valhalla'
Makefile:9612: recipe for target 'install' failed
make: *** [install] Error 2
./configure CXX=gcc-5
fixed my previous issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kevinkreiser
Thanks for the quick an detailed response! I played around with your example for a while but unless I add a
+
operator to thebar
struct similar to this infoo
, it's not compiling. I now installed gcc5 just to be able to verify it should compile.Your code compiles with gcc6 with
gnu++98
andc++98
when changing the curly braces to normal parentheses, although, some warnings appear (warning: inheriting constructors only available with -std=c++11 or -std=gnu++11
). It does produce an out file which is executing correctly. Odd stuff.