[Xorp-hackers] About inheriting from XrlStdRouter.

Pavlin Radoslavov pavlin at ICSI.Berkeley.EDU
Mon Jan 26 10:30:45 PST 2009


[Reply to an old email that seems wasn't answered on the list]

Did you resolve the issue?

I had a look in file libxipc/xrl_dispatcher.hh (in XORP-1.6 and
CVS), but line number 22 is a comment. It looks like the version
you are using has been modified which makes it more difficult for us
to resolve it.

Pavlin

杨小帅 <eshe168 at gmail.com> wrote:

> Hi,
> 
> I wrote a new class, whose base class is XrlStdRouter. The following
> is my simple source code. But, when I use make to build, there are
> something wrong. I can not find reason.
> Moreover, if the IpcSVR do not inherit from XrlStdRouter, the build is right.
> 
> PS: My OS is debian, 2.6.24 kernel.
> 
> class IpcSVR : public XrlStdRouter
> {
> public:
> 	IpcSVR(EventLoop& eventloop, const string& targetname,
> 	        const string& finder_hostname, uint16_t finder_port);
> 	~IpcSVR(void);
> 
> protected:
> private:
> 	EventLoop&	_eventloop;	// The event loop to use
>         XrlStdRouter	_xrl_router;	// The standard XRL send/recv point
> };
> 
> Error information:
> /bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o svr_main
> svr-main.o ../lib/libfinder.la ../lib/libxipc.la ../lib/libcomm.la
> ../lib/libxorp.la ../lib/libcpl_ifmgrxif.la
> g++ -g -O2 -o svr_main svr-main.o  ../lib/libfinder.a ../lib/libxipc.a
> ../lib/libcomm.a ../lib/libxorp.a ../lib/libcpl_ifmgrxif.a -lcrypto
> -lrt
> svr-main.o: In function `XrlDispatcher':
> /home/yxs/ipc-xorp/svr-main/../libxipc/xrl_dispatcher.hh:22: undefined
> reference to `XrlCmdMap::XrlCmdMap(XrlCmdMap const&)'
> /home/yxs/ipc-xorp/svr-main/../libxipc/xrl_dispatcher.hh:22: undefined
> reference to `XrlCmdMap::XrlCmdMap(XrlCmdMap const&)'
> -- 
> Best Regard
> Xiaoshuai Yang
> 
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers



More information about the Xorp-hackers mailing list