undefined reference ; cpp unfindable

Hello,
I am trying to use KDL with Debian Etch and Kdevelop.
I have followed the installation procedure and everything seems fine if I only need the .hpp files (vector declarations, initialisations, additions). But when I need the .cpp files, the following error occurs during the linking (use of the Norm function for example): undefined reference to 'KDL::Vector::Norm() const'.
The use of Chain returns the same kind of errors.
A warning tells (translation from French) : make[2]: *** No rule to make the target "libkdl.o" needed for "libkdl.a".

Thank you,
Sébastien Rubrecht.

undefined reference ; cpp unfindable

On Monday 19 January 2009 10:55:26 rubrecht [..] ... wrote:
> Hello,
> I am trying to use KDL with Debian Etch and Kdevelop.
> I have followed the installation procedure and everything seems fine if I
> only need the .hpp files (vector declarations, initialisations, additions).
> But when I need the .cpp files, the following error occurs during the
> linking (use of the Norm function for example): undefined reference to
> 'KDL::Vector::Norm() const'. The use of Chain returns the same kind of
> errors.
> A warning tells (translation from French) : make[2]: *** No rule to make
> the target "libkdl.o" needed for "libkdl.a".

This is not enough information for us to help you. Since you have a build
problem, we'd require your compiler flags/output. Also, KDL uses cmake to
generate the make files, could you succesfully make and make install kdl ?

Did you forget to add -L/path/to/lib -lorocos-kdl to your link flags ?

Peter

Hello and thank you for

Hello and thank you for your answer.
Finally I found an adequate solution to my problem
Kdevelop uses automake that was looking for non existing file.
I finally added the -lorocos-kdl command through Kdevelop.
Anyway, I couldn't manage to give Kdevelop the -L/path/to/lib (I can't find a complete Kdevelop user manual!)
So I re-installed KDL in /usr/ instead of /usr/local/.