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
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to