airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emre Brookes <e...@biochem.uthscsa.edu>
Subject Re: Undefined reference to Workflow::read/write(TProtocol*) error in Airavata-0.15
Date Sat, 06 Jun 2015 11:32:36 GMT
Priyanshu,

Have you seen this http://wiki.apache.org/thrift/ThriftUsageC%2B%2B ?
Perhaps it has some information you need.  It appears to have some extra 
.o files generated by thrift.
Note the 2 stage client compiling & linking lines (which could be 
combined into one) esp. the client
linking has extra .o's.

-Emre


priyanshu patra wrote:
> Hi all,
>
> I'm using the following command to compile a cpp file with airavata 
> and thrift libraries of 0.15-release-version.
> *g++ 
> -I/home/priyanshu-sekhar/gsoc/new_airavata/new_genapp/genapp/languages/qt4/util/lib/

> -L/usr/local/lib -w -Wno-write-strings -DHAVE_CONFIG_H 
> -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  -I/usr/local/include 
> `pkg-config --cflags glib-2.0` Register.cpp `pkg-config --libs 
> glib-2.0` -o Register -lthrift *
>
> This is the error that I'm getting. How do I fix this?
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_getWorkflow_result::read(apache::thrift::protocol::TProtocol*)':
> Register.cpp:(.text+0x4c196): undefined reference to 
> `Workflow::read(apache::thrift::protocol::TProtocol*)'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_getWorkflow_result::write(apache::thrift::protocol::TProtocol*)

> const':
> Register.cpp:(.text+0x4c36d): undefined reference to 
> `Workflow::write(apache::thrift::protocol::TProtocol*) const'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_getWorkflow_presult::read(apache::thrift::protocol::TProtocol*)':
> Register.cpp:(.text+0x4c572): undefined reference to 
> `Workflow::read(apache::thrift::protocol::TProtocol*)'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_registerWorkflow_args::read(apache::thrift::protocol::TProtocol*)':
> Register.cpp:(.text+0x4cef6): undefined reference to 
> `Workflow::read(apache::thrift::protocol::TProtocol*)'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_registerWorkflow_args::write(apache::thrift::protocol::TProtocol*)

> const':
> Register.cpp:(.text+0x4d0ad): undefined reference to 
> `Workflow::write(apache::thrift::protocol::TProtocol*) const'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_registerWorkflow_pargs::write(apache::thrift::protocol::TProtocol*)

> const':
> Register.cpp:(.text+0x4d189): undefined reference to 
> `Workflow::write(apache::thrift::protocol::TProtocol*) const'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_updateWorkflow_args::read(apache::thrift::protocol::TProtocol*)':
> Register.cpp:(.text+0x4d86e): undefined reference to 
> `Workflow::read(apache::thrift::protocol::TProtocol*)'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_updateWorkflow_args::write(apache::thrift::protocol::TProtocol*)

> const':
> Register.cpp:(.text+0x4da25): undefined reference to 
> `Workflow::write(apache::thrift::protocol::TProtocol*) const'
> /tmp/ccFRo65D.o: In function 
> `apache::airavata::api::Airavata_updateWorkflow_pargs::write(apache::thrift::protocol::TProtocol*)

> const':
> Register.cpp:(.text+0x4db01): undefined reference to 
> `Workflow::write(apache::thrift::protocol::TProtocol*) const'
>
> Regards,
> Priyanshu


Mime
View raw message