Does stlport's hash_map work like SGI's hash_map, or like MSVC's hash_map, or does it do its own thing? A brief look at the docs suggest that it is most similar to SGI's. In that case, you should only need to change the #ifdefs in src/google/protobuf/stubs/hash.h so that your compile takes the non-MSVC branch. That is, change line 101 from: #elif defined(_MSC_VER)
to: #elif 0 Let me know if this works. On Mon, Oct 13, 2008 at 3:08 AM, <[EMAIL PROTECTED]> wrote: > > thanks. it's okay, but i am thinking how to use stlport's hash_map > with protobuf. > how can i do? > > On 10月11日, 上午4时24分, "Kenton Varda" <[EMAIL PROTECTED]> wrote: > > I'm not familiar with stlport. One thing you could try doing is editing > > config.h manually and removing all the HASH_* #defines. Then the code > will > > fall back to using map instead of hash_map, which should work since map > has > > a standard interface. > > > > On Fri, Oct 10, 2008 at 2:58 AM, <[EMAIL PROTECTED]> wrote: > > > > > I'm using stlport, and i want to use protobuf, but I see some > > > compiling errors about the hash_map. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
