I am trying to get started using pb, but I am stuck. I've got my
messages compiled into their .h and .cc parts, i've added those to my
project. I built protobuf in vs 2009, and I've added the
protobuf-2.0.3\src directory as an include location and the output
from the build as an additional library
Here are the errors:
BackupComm error LNK2005: "public: void __thiscall std::ios_base::clear
(int,bool)" (?cl...@ios_base@std@@qaex...@z) already defined in
Service.obj
BackupComm error LNK2005: "public: virtual __thiscall
std::ios_base::~ios_base(void)" (??1ios_b...@std@@u...@xz) already
defined
I think part of my problem was using precompiled headers in the
project. I've removed that option and recreated my project, but I
still get these linker errors:
backupcomm error LNK2019: unresolved external symbol "public: static
class google::protobuf::MessageFactory * __cdecl
google::protobuf::
I don't know how else to link to libprotobuf.lib. Here's the resulting
command lines of the options I've tried:
/LIBPATH :"C:\Development\Libraries\lib" contains the output of the
files built using the project files in vsprojects folder included in
the protobuf source.
First, I'm not speciyfing
Well, now I'm convinced my problem was directly related to visual
studio. I originally started this project in VS2003 so I wouldn't have
to cart around a bunch of vc90 dlls. However, I build libprotobuf in
vs 2008. That threw me off at one point, I thought my problems were
related to the version d
That must have been the problem. This time, I started over and only
used 2008, everything worked fine.
On Apr 8, 5:07 pm, Kenton Varda wrote:
> I don't think a libprotobuf compiled with VS2008 will work correctly with a
> project compiled in VS2003. Microsoft has a tendency to change the layout