Hello,

has anybody experienced the same problem as the one reported in the email 
below?

I had the same problem after making some modifications in mobilenode.cc 
code and it was quite weird. What I actually did to solve the problem was 
putting the method definition in the .cc file and only declaring it in the 
.h file.

Another test I did was to define it (as an inline method) in the .h file, 
but after the class declaration and it didn't work either. When taking out 
the "inline", everything was fine.

Has anybody any idea about this strange behaviour? Could it be due to some 
C++ mistake I had probably made?

Cheers,
Ramón

At 2005-01-17 [EMAIL PROTECTED] wrote:

>Hi,
>
>I just found that the functions used in tworayground.cc for
>calculation of distances between two nodes are not returning the
>correct values:
>
>r->getNode()->getLoc(&rX, &rY, &rZ);
>t->getNode()->getLoc(&tX, &tY, &tZ);
>
>after calling these functions, the values of rX, rY, rZ, tX, tY, tZ
>are all zeros, which causes the distance d always zero.
>
>Is this a bug in ns? or I got some setup wrong?
>
>Thanks in advance!
>
>Bin

Reply via email to