[protobuf] Re: Issue 188 in protobuf: protobuf fails to link after compiling with LDFLAGS=-Wl,--as-needed because of missing -lpthread

2010-12-09 Thread protobuf

Updates:
Status: Accepted
Owner: liuj...@google.com
Labels: -FixedIn-2.4.0

Comment #13 on issue 188 by liuj...@google.com: protobuf fails to link  
after compiling with LDFLAGS=-Wl,--as-needed because of missing -lpthread

http://code.google.com/p/protobuf/issues/detail?id=188

Well, the previous fix isn't correct. Rolled it back. Will have another  
look.


--
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.



[protobuf] Re: Issue 248 in protobuf: protobuf will not compile without thread library

2010-12-09 Thread protobuf


Comment #7 on issue 248 by liuj...@google.com: protobuf will not compile  
without thread library

http://code.google.com/p/protobuf/issues/detail?id=248

Yes, the r353 fix isn't correct. Rolled it back at r360.

--
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.



[protobuf] Re: Issue 188 in protobuf: protobuf fails to link after compiling with LDFLAGS=-Wl,--as-needed because of missing -lpthread

2010-12-09 Thread protobuf

Updates:
Status: NeedPatchFromUser

Comment #14 on issue 188 by liuj...@google.com: protobuf fails to link  
after compiling with LDFLAGS=-Wl,--as-needed because of missing -lpthread

http://code.google.com/p/protobuf/issues/detail?id=188

Hi, xarthisius.kk,

The line above: AC_TRY_LINK(,, , [done=yes]) will only set done=yes when  
the AC_TRY_LINK failed.


AC_TRY_LINK(includes, function-body, action-if-found, action-if-not-found)

So protobuf-2.3.0-asneeded.patch just skipped the first -pthread try, which  
happened to fix your problem..


I also set LDFLAGS to -Wl,--as-needed, but can not reproduce the link  
error(x86-linux). So set this issue as NeedPatchFromUser.






--
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.



[protobuf] Re: Issue 249 in protobuf: Default values are not assumed to be filled in.

2010-12-09 Thread protobuf


Comment #2 on issue 249 by osfan6313: Default values are not assumed to be  
filled in.

http://code.google.com/p/protobuf/issues/detail?id=249

Ah.  Well I haven't seen any information which ever said that; the  
documentation is rather lacking in that regard.


It would be nice to have this as an option though.  The amount of code  
required is rather trivial.


--
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.



[protobuf] How to use Protocol buffers in visual studio c#.net

2010-12-09 Thread vinu
Sir,


Any body please send me any example program and how to use protocol
buffers in c#.net visual stduio

-- 
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.



[protobuf] Re: Issue 249 in protobuf: Default values are not assumed to be filled in.

2010-12-09 Thread protobuf


Comment #3 on issue 249 by mdpo...@troilus.org: Default values are not  
assumed to be filled in.

http://code.google.com/p/protobuf/issues/detail?id=249

The behavior and documentation seem clear to me: required means the user  
must set it to something (i.e. it is required).  Why would making your  
field optional not meet your needs?


--
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.



[protobuf] Re: Issue 249 in protobuf: Default values are not assumed to be filled in.

2010-12-09 Thread protobuf


Comment #4 on issue 249 by osfan6313: Default values are not assumed to be  
filled in.

http://code.google.com/p/protobuf/issues/detail?id=249

We're using protocol buffers to store user settings, so we want some fields  
to be required(for data validation purposes).  However, when we first  
generate the data we want there to be some default value for these  
settings, so that we can have default settings already filled in  
automatically.


I could be wrong, but I think that even if I made the field 'optional', and  
immediately built the protocol buffer, no information would be set by  
default.


Or, to put it another way:
When making a protocol buffer, you don't always want ALL fields to be set,  
however some fields MUST have a  value.  If no user-value is defined, then  
the default value is used for that field.  For example, if you use a  
JOptionPane to show the user some information, you don't always want to  
give the user OK and Cancel buttons, because they're not relevant.   
However, you always have a Component and a Message as parameters.  If  
nothing else is provided, then the defaults for the other settings(icon,  
title, ok/cancel) buttons are set to the default(none).


--
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.



[protobuf] How to use Protocol buffers in visual studio c#.net

2010-12-09 Thread vinu
Any body send me example program on protocl buffers using in c#.net

-- 
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] How to use Protocol buffers in visual studio c#.net

2010-12-09 Thread Marc Gravell
It depends on the exact scenario

Are you already using protocol buffers for other platforms? Working from
.proto?

There are several C# implementations, with different levels of VS
integration. The two I would mainly think of is Jon Skeet's C# port  (
http://code.google.com/p/protobuf-csharp-port/) and my own offering:
protobuf-net (http://code.google.com/p/protobuf-net/).

Jon's port exposes an almost identical API to the Java version (and IIRC has
very similar tooling); protobuf-net looks at it the other way around: it is
.NET centric *first*, with .proto support secondary - as such, with
protobuf-net you don't strictly *need* a .proto *at all*. Of course, you
*can* use a .proto (an msi for VS integration is on the protobuf-net home
page, with a write-up here:
http://marcgravell.blogspot.com/2009/07/protobuf-net-now-with-added-orcas.html)
- but if I'm honest I *personally* mainly use it *without* .proto, as I am
usually just talking .NET to .NET, and I just want to serialize stuff.

Jon may be offer to give more specific pointers about his version.

Marc Gravell

On 9 December 2010 14:06, vinu vinodkumara...@gmail.com wrote:

 Sir,


 Any body please send me any example program and how to use protocol
 buffers in c#.net visual stduio

 --
 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.comprotobuf%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/protobuf?hl=en.




-- 
Regards,

Marc

-- 
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.