I assume this is happening at startup?  Is it possible that you are somehow
linking two copies of the same .pb.cc into your binary?  There are cases
where the linker doesn't catch this, especially when dynamic linking is
involved, but sometimes even with static linking.  Speaking of which, are
you linking dynamically or statically?

I am not aware of any outstanding issues that would cause this, but C++
initialization behavior can be crazy complicated and can even vary between
platforms.

On Mon, Dec 6, 2010 at 8:05 AM, Alex Nixon <alex.nixon...@gmail.com> wrote:

> Hello,
>
> I'm receiving a "File already exists in database" error from the
> protocol buffers library at runtime on Mac OSX, and I'm unsure as to
> what's causing it or where to look to isolate the problem.  I have the
> exact same codebase compiling on Windows and Linux and they both work
> fine - so I wondered if this is a protocol buffers issue?  That said,
> I was unable to find any outstanding issues in the bug tracker which
> match my symptoms.
>
> All of my .proto files have different names and are in the same
> directory.  The generated .pb.h and .pb.cc files on Mac OSX are
> identical to those generated on Linux.
>
> Any advice would be much appreciated.
>
> Thanks in advance,
> - Alex Nixon
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@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