Re: [protobuf] Link errors with protobuf 2.2.0a

2009-12-17 Thread Kenton Varda
On Thu, Dec 17, 2009 at 2:47 AM,  wrote:

> Hello,
>
> You should use same runtime library setting to build your application and
> protobuffer libraries.
>

Specifically, debug vs. release, single-threaded vs. multi-threaded, etc.
 Unfortunately, MSVC's STL implementation for each of these library
implementations is different.


>
> Hope this help,
>
> Alexander
>
>
> > 1>ivnt-mplsted.lib(ivnt-mplsted.dll) : error LNK2005: "protected:
> > __thiscall std::_Container_base_aux_alloc_empty > std::allocator >::~_Container_base_aux_alloc_empty > std::allocator >(void)" (??1?$_container_base_aux_alloc_em...@v?
> > $alloca...@h@std@@@std@@i...@xz) already defined in libprotobufd.lib
> > (descriptor.obj)
> > 1>ivnt-mplsted.lib(ivnt-mplsted.dll) : error LNK2005: "protected:
> > __thiscall std::_Container_base_aux_alloc_empty > std::allocator >::_Container_base_aux_alloc_empty > std::allocator >(class std::allocator)" (??0?
> > $_container_base_aux_alloc_em...@v?$allocator@h...@std@@@std@@i...@v?
> > $alloca...@h@1@@Z) already defined in libprotobufd.lib(descriptor.obj)
> > 1>Searching ..\debug\aria-commond.lib:
> >
> > It looks like one of our libararies are using stl related stuff and
> > the same being used in libprotobuf as well. I believe this should be
> > ok and should not cause any issue. Have any body have faced such a
> > problem before , Any advice will be really helpfull.
> >
> > Operating system is Windows Vista ,development environment is  Visual
> > Studio 2008 and the static version of libprotobuf is used.
> >
> > NB: If we switch back to 2.0.3 every thing works fine.But we are
> > planning to use some of the new features and  hence the migration to
> > 2.2.0a.
> >
> >
> > Thanks & Regards
> > Anu
> >
> > --
> >
> > 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.
> >
> >
> >
>
>
> --
>
> 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.
>
>
>

--

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.




Re: [protobuf] Link errors with protobuf 2.2.0a

2009-12-17 Thread alm
Hello,

You should use same runtime library setting to build your application and
protobuffer libraries.

Hope this help,

Alexander


> 1>ivnt-mplsted.lib(ivnt-mplsted.dll) : error LNK2005: "protected:
> __thiscall std::_Container_base_aux_alloc_empty std::allocator >::~_Container_base_aux_alloc_empty std::allocator >(void)" (??1?$_container_base_aux_alloc_em...@v?
> $alloca...@h@std@@@std@@i...@xz) already defined in libprotobufd.lib
> (descriptor.obj)
> 1>ivnt-mplsted.lib(ivnt-mplsted.dll) : error LNK2005: "protected:
> __thiscall std::_Container_base_aux_alloc_empty std::allocator >::_Container_base_aux_alloc_empty std::allocator >(class std::allocator)" (??0?
> $_container_base_aux_alloc_em...@v?$allocator@h...@std@@@std@@i...@v?
> $alloca...@h@1@@Z) already defined in libprotobufd.lib(descriptor.obj)
> 1>Searching ..\debug\aria-commond.lib:
>
> It looks like one of our libararies are using stl related stuff and
> the same being used in libprotobuf as well. I believe this should be
> ok and should not cause any issue. Have any body have faced such a
> problem before , Any advice will be really helpfull.
>
> Operating system is Windows Vista ,development environment is  Visual
> Studio 2008 and the static version of libprotobuf is used.
>
> NB: If we switch back to 2.0.3 every thing works fine.But we are
> planning to use some of the new features and  hence the migration to
> 2.2.0a.
>
>
> Thanks & Regards
> Anu
>
> --
>
> 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.
>
>
>


--

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.