qchbai / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

error: 'ptrdiff_t' was not declared in this scope #355

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compile Error with gcc-4.6.1
src/base/elf_mem_image.cc: In member function 'void 
base::ElfMemImage::Init(const void*)':
src/base/elf_mem_image.cc:251:3: error: 'ptrdiff_t' was not declared in this 
scope
src/base/elf_mem_image.cc:251:3: note: suggested alternatives:
/usr/include/c++/4.6.1/i686-pc-linux-gnu/bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
/usr/include/c++/4.6.1/i686-pc-linux-gnu/bits/c++config.h:156:28: note:   
'std::ptrdiff_t'
src/base/elf_mem_image.cc:251:13: error: expected ';' before 'relocation'
src/base/elf_mem_image.cc:255:37: error: 'relocation' was not declared in this 
scope

see my attached patch

Original issue reported on code.google.com by juergen....@gmail.com on 25 Jul 2011 at 3:27

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by `` on 18 Jan 2012 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 25 Jul 2011 at 9:11