files are not attached, double check please but before looking at anything, do you have header file included when compiling? if so, make sure shared object is accessible when linking,
Sasan On 20 Apr 2006 03:14:31 -0000, syamantak mukherjee < [EMAIL PROTECTED]> wrote: > > > > > > Hi, > We are working with ns-2.29. Today we came across a problem while > running 'make' command. Before I state the error, it would be helpful to > let you know what we are actually doing. > we want to create a new kind of node called "Forwarding Node", we > have written the corresponding c++ class in forwardnode.cc file in > 'ns-allinone-2.29/ns-2.29/common/' directory. In addition we have written > the forwardnode.h file also, which is in the same directory. And a .tcl > file in 'ns-allinone-2.29/ns-2.29/tcl/lib' directory. > We have written the 'Makefile' accordingly. Now, while running 'make' > we encounter the following error....I'm simply coating it- > > " In function `ForwardNode::ForwardNode[not-in-charge]()': > > > : undefined reference to `vtable for ForwardNode' > common/forwardnode. > > o(.text+0xba): In function `ForwardNode::ForwardNode[in-charge]()': > > > : undefined reference to `vtable for ForwardNode' > collect2: > > ld returned 1 exit status > make: *** [ns] Error 1 "........ > > I have attached the three files I mentioned for Your help.... > Now please someone have a look at it and tell us what is our fault, it's > urgent ,so plz plz reply... > > > -- Plan for things to go wrong, Design for things to go right S+
