hi,

nay there wasnt any compilation errors. problem was with linking.

can u jot down the exact command i must give in the command prompt..

~R.

Jordi <mumismo@gmail.com> wrote:


The problem is not with your code, but with the compilation.
It seems that you need to add -l math to your link command.

You didn't get any problems compiling Gazebo?


>
> following is the error when i compiled and linked the program:
>
> /usr/local/player-stage/lib/libgazebo.a(gz_truth.o): In function
> `gz_truth_quatern_from_euler':
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `cos'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `cos'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `cos'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `sin'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `sin'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:150: undefined
> reference to `sin' /usr/local/player-stage/lib/libgazebo.a(gz_truth.o): In
> function `gz_truth_euler_from_quatern':
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:136: undefined
> reference to `atan2'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:137: undefined
> reference to `asin'
> /usr/local/player-stage/code/gazebo/libgazebo/gz_truth.c:138: undefined
> reference to `atan2'
> ---------------------------------------------------------------------------



_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo



-------------------------------
Contact:

Address
: am Wichelshof 32
    Zimmer 01-07
    53111
    Bonn, Germany

Phone : +49 - (0)228 - 2408481

Handy : +49 - (0)177 - 6370708

Website : www.geocities.com/raman_agarwal82


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.