How to resolve Symbol Referencing Error while compiling cpp examples of TIBCO?


I have been trying to compile the cpp examples that are present in /src/examples/cpp directory of my tibco installation. But each time I get a "Symbol Referencing Error" even after correctly using the sample makefile provided in the tibco directory. The OS that I am working on is: "Solaris 10 10/09 s10s_u8wos_08a SPARC". Please help as I am struggling to solve this error for the last 1 week.

Below is the error that i get when i do a gmake:

g++ -I/tibco/tibrv/8.1/include -g   -c -o tibrvlisten.o tibrvlisten.cpp
g++ -L/tibco/tibrv/8.1/lib tibrvlisten.o -ltibrvcpp -ltibrv -lsocket -lgen -lnsl -lthread -o  tibrvlisten
Undefined                       first referenced
 symbol                             in file
TibrvTransport::setDescription(char const*)tibrvlisten.o
TibrvMsg::getReplySubject(char const*&)tibrvlisten.o
Tibrv::open()                       tibrvlisten.o
TibrvMsg::getSendSubject(char const*&)tibrvlisten.o
typeinfo for TibrvMsgCallback       tibrvlisten.o
Tibrv::close()                      tibrvlisten.o
TibrvTransport::~TibrvTransport()   tibrvlisten.o
typeinfo for TibrvTransport         tibrvlisten.o
vtable for TibrvMsgCallback         tibrvlisten.o
TibrvMsgCallback::onEvent(TibrvEvent*, TibrvMsg&)     tibrvlisten.o
TibrvNetTransport::create(char const*, char const*, char const*)tibrvlisten.o
TibrvTransport::sendRequest(TibrvMsg const&, TibrvMsg&, double)tibrvlisten.o
TibrvTransport::send(TibrvMsg const&)tibrvlisten.o
TibrvListener::TibrvListener()      tibrvlisten.o
TibrvTransport::sendReply(TibrvMsg const&, TibrvMsg const&)tibrvlisten.o
TibrvMsg::convertToString(char const*&)tibrvlisten.o
TibrvListener::create(TibrvQueue*, TibrvCallback*, TibrvTransport*, char const*, void const*)tibrvlisten.o
Tibrv::_defaultQueue                tibrvlisten.o
TibrvTransport::isValid() const     tibrvlisten.o
ld: fatal: Symbol referencing errors. No output written to tibrvlisten
collect2: ld returned 1 exit status
gmake: *** [tibrvlisten] Error 1