You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Akhil Das <ak...@sigmoidanalytics.com> on 2015/09/18 13:36:17 UTC

c_glib tutorial fails to compile

Hi

I'm trying out the c_glib Calculator example
<http://thrift.apache.org/tutorial/c_glib> and it fails to compile saying:

  thrift-server.c:186:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘TutorialCalculatorHandler* {aka
_TutorialCalculatorHandler*}’ [-fpermissive]
                     NULL);
                         ^
  thrift-server.c:194:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘CalculatorProcessor* {aka _CalculatorProcessor*}’
[-fpermissive]
                     NULL);
                         ^
  thrift-server.c:201:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘ThriftServerTransport* {aka _ThriftServerTransport*}’
[-fpermissive]
                     NULL);
                         ^
  thrift-server.c:208:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘ThriftTransportFactory* {aka
_ThriftTransportFactory*}’ [-fpermissive]
                     NULL);
                         ^
  thrift-server.c:214:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘ThriftProtocolFactory* {aka _ThriftProtocolFactory*}’
[-fpermissive]
                     NULL);
                         ^
  thrift-server.c:225:23: error: invalid conversion from ‘gpointer
{aka void*}’ to ‘ThriftServer* {aka _ThriftServer*}’ [-fpermissive]
                     NULL);
                         ^
  thrift-server.c:176:7: warning: unused variable ‘exit_status’
[-Wunused-variable]
     int exit_status = 0;


My GCC version is 4.8.2 and I'm on a ubuntu 14.10 box


I have posted the same on Stackoverflow also
http://stackoverflow.com/questions/32650797/thrift-c-c-glib-implementation-fails-to-compile


Any help will be really appreciated.


Thanks
Best Regards