191919 / sparsehash

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

GCC 3.4 and later hash_fun.h patch #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use dense_hash_map in your program
2. compile it with gcc-3.4 (or 4.x)
3. you'll get a 'no such file' error

What is the expected output? What do you see instead?
./google/sparsehash/hash_fun.h:6:30: error: ext/stl_hash_fun.h: No such
file or directory

What version of the product are you using? On what operating system?
sparsehash 0.5 or 0.6, ubuntu feisty fawn, gcc

gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Please provide any additional information below.
I think this patch solves the issue. I've checked it against gcc 3.4 and 4.1.

Original issue reported on code.google.com by L.Bart...@gmail.com on 26 Mar 2007 at 1:02

Attachments:

GoogleCodeExporter commented 9 years ago
attached, you can find the hash_fun.h file, that i'm using to include the 
source tree
of sparse-hash in my application ...

best, tim

Original comment by tim.klin...@gmail.com on 11 Apr 2007 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
hash_fun.h is autogenerated as part of the configure process.  How are you 
installing
sparsehash on your system?  Did you unpack the tarball and run ./configure and 
make?
 Or did you install an .rpm file or something like that?

Can you show the current contents of /usr/include/google/sparsehash/hash_fun.h? 
 (Or
perhaps /usr/local/google.)  What does
   find /usr/include -name stl_hash_fun.h
show?

craig

Original comment by csilv...@gmail.com on 11 Apr 2007 at 10:36

GoogleCodeExporter commented 9 years ago
Well, now when I've checked it I'm curious too. It's possible that I've 
./configure'd
it with gcc 3.3 and then changed the default gcc to 4.1 when updating the 
system.
I've re./configure'd it and everything is ok. Sorry for the trouble.

Original comment by L.Bart...@gmail.com on 18 Apr 2007 at 8:26

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 18 Apr 2007 at 5:34