hey Jordi,

yup it works fine now.. i can compile and link without any errors.

thanks a ton..

~R.

Jordi <[EMAIL PROTECTED]> wrote:
Tuesday 20 June 2006 20:38、Raman Agarwal さんは書きました:
> 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..
>

Something like:

gcc -o mybinary
mybinary.o -L/usr/X11R6/lib -L/usr/lib -lgazebo -lpthread -lGLU -lGL -lm


sustitute mybinary and mybinary.o with the name of your program and object
file.




> ~R.
>
> Jordi <[EMAIL PROTECTED]> 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
> [email protected]
> 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.


_______________________________________________
Playerstage-gazebo mailing list
[email protected]
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


Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league today!
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to