On Thu, Mar 26, 2009 at 6:57 PM, Kenton Varda <ken...@google.com> wrote:
> On Thu, Mar 26, 2009 at 9:28 AM, Jesper <jesper.eskil...@gmail.com> wrote:
>>
>> I think so, but I'll double-check. (Wouldn't that have showed up when
>> libprotobuf.lib was linked into the exe?)
>
> Unfortunately, probably not.  Strange crashes at runtime are the usual
> symptom.  :(

It turned out to be caused by a mismatch in using _SECURE_SCL, i.e.
checked iterators. Just to add to the Debug/Release problems,
Microsoft has added extra defines which must not be mixed --
_SECURE_SCL affects the binary layout of STL containers, so it has to
be defined the same way everywhere, and unfortunately the code I'm
working on has a non-default setting for _SECURE_SCL.

Thanks anyway for all the help.

(BTW: I created a set of CMake (http://cmake.org) build files for
Protobufs, in case you're interested in not maintaining parallell
Makefiles/project files for Linux/Windows.)

-- 
/Jesper

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to