You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Gonzalo Aguilar Delgado <ga...@aguilardelgado.com> on 2015/11/23 10:20:13 UTC

How to handle shared .thrift files

Hi,

How do you handle .thrift files that are shared against multiple
libraries that are then integrated on a main program.

Because if you include the shared code. When you link all together you
will have duplicated symbols.

What we do is include support for the shared object in one of the
libraries and wipe all code from the other. But this requires carefull
namespace naming and manual changes before compiling.

Is there any other better way?