What language of protobuf are you using?  We have public APIs for getters 
and setters. You can look into our web to see how to use them:
https://developers.google.com/protocol-buffers/docs/reference/cpp-generated 
<https://developers.google.com/protocol-buffers/docs/reference/cpp-generated?hl=zh-CN>

On Tuesday, May 7, 2019 at 11:29:57 PM UTC-7, Vinay Shivakumar wrote:
>
> Hi ,
>
> I have a requirement where i need to use the generated functions like 
> getters and setters from generated protobuf classes in different shared 
> library other than where it is generated and built . all the funtions 
> generated is "inlined" . because of this , i am getting undefined reference 
> in shared library where i am using it . 
>
> I have two questions :
> 1) is there any way to generate functions without inline ? is it 
> recommended if possible ?
> 2) if inlining removal is not suggested , how do we reference the 
> functions in different shared library ? some sort of wrapper for each 
> getters and setters i want to use ?
>
> Request your suggestions .
>
> Thanks 
> Vinay Shivakumar
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/60889d0a-b599-4931-9850-c5dafe832b72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to