Re: Problem with linking runtime libraries on Windows for C++

2009-06-04 Thread Kenton Varda
/MDd is the debug library. libprotobuf.lib only links against it when built in debug mode. Are you also compiling your app in debug mode? You need to make sure to compile both projects in the same mode. Are you able to build the tests that come with the protobuf code? If so, maybe check what's

Re: Problem with linking runtime libraries on Windows for C++

2009-06-04 Thread Wayne Menezes
Thanks for yoru response! I found that Microsoft Visual Studio was using the /MDd flag while compiling libprotobuf.lib. I changed it to use /MD which is what I am using to build my application. So now both are using the same flags, but I am still seeing the same error. I am linking the application

Re: Using dynamic library

2009-06-04 Thread Kenton Varda
Yes, you need to use the protobuf runtime library. Each language has an independent runtime library. libprotobuf.so is only for C++. For Java, there is a Maven-built jar file on which you need to depend. You don't need to link against the C++ dynamic library for Java apps. On Thu, Jun 4, 2009 a

Re: Communication methods

2009-06-04 Thread Stas Oskin
Thanks, this makes sense. Regards. 2009/6/4 Kenton Varda > On Thu, Jun 4, 2009 at 5:23 AM, Stas Oskin wrote: > >> Thanks for the tip, any idea if the plain UNIX pipes are working with >> protobuf? >> > > You can send a protocol buffer over a pipe, sure. It's just bytes. > > >> >> >> Regards.

Re: Problem with linking runtime libraries on Windows for C++

2009-06-04 Thread Kenton Varda
When you compile your app, are you making sure to use the same C runtime library against which you compiled libprotobuf? It looks like it's complaining about missing functions in the C runtime. On Thu, Jun 4, 2009 at 8:58 AM, wrote: > > Hi, > I am trying to use Google Protocol Buffers run time

Re: /usr/include/google/protobuf/stubs/once.h: undefined reference to `pthread_once'

2009-06-04 Thread Carmen Navarrete
Excuse me the annoyance... Absolutely right. That was the problem. I was adding the lpthread the my USEs but I didn't added it to the project. Thank you very much once more. Best regards. 2009/6/4 Henner Zeller > sounds like linking the pthread library is missing. Add -lpthread to > your linker

Re: Communication methods

2009-06-04 Thread Kenton Varda
On Thu, Jun 4, 2009 at 5:23 AM, Stas Oskin wrote: > Thanks for the tip, any idea if the plain UNIX pipes are working with > protobuf? > You can send a protocol buffer over a pipe, sure. It's just bytes. > > > Regards. > > 2009/5/25 Christopher Smith > > http://code.google.com/p/protobuf/wiki

Re: Serializing a DAG

2009-06-04 Thread Kenton Varda
Sorry, Protocol Buffers only supports trees, not DAGs. So, you need to devise some other way to identify objects on top of that. On Thu, Jun 4, 2009 at 7:26 AM, wrote: > // Add Wheel > Wheel *to_replace = car->mutable_wheel(); > *to_replace = existing_wheel; In this code you're actually makin

Re: Sun Studio 11

2009-06-04 Thread Kenton Varda
Thanks for the patch! It looks like you were using the examples as a test. Running "make check" in the top directory will run a much better suite of tests -- do they pass? Assuming it does work, can you re-send that patch as an attachment (it looks like it has been mangled), or even send it to me

Re: /usr/include/google/protobuf/stubs/once.h: undefined reference to `pthread_once'

2009-06-04 Thread Henner Zeller
sounds like linking the pthread library is missing. Add -lpthread to your linker options. On Thu, Jun 4, 2009 at 1:27 PM, Carmen wrote: > > Hi all, > I'm just having some errors when compiling my first .proto file. I > made the .proto and compile it with protoc and all goes excellent. > Then I i

/usr/include/google/protobuf/stubs/once.h: undefined reference to `pthread_once'

2009-06-04 Thread Carmen
Hi all, I'm just having some errors when compiling my first .proto file. I made the .proto and compile it with protoc and all goes excellent. Then I import the .c and .h files into my C++ project and when I compile all together I receive the error of the subject of this mail. My system is a gento

Problem with linking runtime libraries on Windows for C++

2009-06-04 Thread wayne . menezes
Hi, I am trying to use Google Protocol Buffers run time libraries in my application. To use Protocol Buffers, I need to first build the run- time libraries for C++ on Windows. I am using Visual Studio 2003. While linking the libraries into my application I get the following errors. Can anyone hel

Serializing a DAG

2009-06-04 Thread hald
Hi, I´m unsure on how the serializer determines object identity. Is it by address or by value? I´m using C++ and trying to serialize something like that: A Shop contains all Wheels and Cars. A Car has several Wheels but those Wheels are also referenced by the Shop. So they are the same Wheels. (I

Using dynamic library

2009-06-04 Thread SyRenity
Hi. A bit naive question, but the protobuf dynamic library is required for compiling, correct? I mean, protobuf is not header-only library? If yes, does the Java version requires the dynamic library, and how it is linked, when using Maven built JAR? Thanks. --~--~-~--~~~

Re: Communication methods

2009-06-04 Thread Stas Oskin
Hi. Thanks for the tip, any idea if the plain UNIX pipes are working with protobuf? Regards. 2009/5/25 Christopher Smith > http://code.google.com/p/protobuf/wiki/RPCImplementations > > On Sun, May 24, 2009 at 12:42 PM, SyRenity wrote: > >> >> Hi. >> >> Sorry if this was already asked in the p