Closed GoogleCodeExporter closed 9 years ago
$ make g++ -o obj/util/arena.o -Wall -O3 -g -pthread -Wno-sign-compare -c -I. -DNDEBUG util/arena.cc g++ -o obj/util/hash.o -Wall -O3 -g -pthread -Wno-sign-compare -c -I. -DNDEBUG util/hash.cc g++ -o obj/util/rune.o -Wall -O3 -g -pthread -Wno-sign-compare -c -I. -DNDEBUG util/rune.cc g++ -o obj/util/stringpiece.o -Wall -O3 -g -pthread -Wno-sign-compare -c -I. -DNDEBUG util/stringpiece.cc In file included from util/stringpiece.cc:5:0: ./re2/stringpiece.h:120:11: error: ‘ptrdiff_t’ does not name a type make: *** [obj/util/stringpiece.o] Error 1 $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/src/gcc-4.6.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libstdcxx-pch --enable-checking=release Thread model: posix gcc version 4.6.0 (GCC) It works if I change stringpiece.h to use std::ptrdiff_t.
Original issue reported on code.google.com by dgl...@gmail.com on 9 Apr 2011 at 4:51
dgl...@gmail.com
This patch fixes it.
Original comment by bique.al...@gmail.com on 25 Apr 2011 at 12:26
bique.al...@gmail.com
Attachments:
Original comment by rsc@swtch.com on 1 May 2011 at 7:13
rsc@swtch.com
Original issue reported on code.google.com by
dgl...@gmail.com
on 9 Apr 2011 at 4:51