When I add an idl project in redhawk following the steps below:
$ ./reconf
$ ./configure
$ sudo make
$ sudo make install
I can find the newly added idl file in the REDHAWK Target SDR directory.
When testing whether the idl file can be called, I have added the header file and have already called the function interface, but at compile time, the error is: undefined reference to 'xxxxxxxx' eg:
#include <redhawk/XH_IDL_TEST/xh_idl_test.h>
class data_t_test_base : public Component, protected ThreadedComponent
{
public:
data_t_test_base(const char *uuid, const char *label);
~data_t_test_base();
void start() throw (CF::Resource::StartError, CORBA::SystemException);
void stop() throw (CF::Resource::StopError, CORBA::SystemException);
void releaseObject() throw (CF::LifeCycle::ReleaseError,CORBA::SystemException);
void loadProperties();
protected:
xh_idl_test::_objref_dataChar *XH;
private:
}
errors:
/home/sca/sca_com/data_t_test/cpp/data_t_test.cpp:21: undefined reference to `xh_idl_test::_objref_dataChar::pushPacket()'
May I ask how to solve this problem?