Eigen linking symbols

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Eigen linking symbols

Antoine Rennuit
Dear all,

I am currently putting together an application with uses the PCL together
with ROS (eventually). My application uses a data model which is based on
eigen as for the matrix related data.

In the first step I only plan to integrate my data model library (which is
PCL agnostic buts depends on Eigen) together with my scenegraph library
(which uses the PCL and my data model as a dependency). I am wondering which
architecture I can use in order not to get a link error because of the eigen
symbols being declared twice (eigen symbols are being declared both in the
data model and in the PCL).

Anyone as such a linking experience? Was this issue solved in the case where
the PCL is used within ROS? I guess the same problems happens here as both
the PCL and ROS use eigen?

Any feedback?

Thanks!

Antoine.
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Eigen linking symbols

Jochen Sprickerhof
Administrator
Hi Antoine,

* Antoine Rennuit <[hidden email]> [2013-11-21 13:07]:

> I am currently putting together an application with uses the PCL together
> with ROS (eventually). My application uses a data model which is based on
> eigen as for the matrix related data.
>
> In the first step I only plan to integrate my data model library (which is
> PCL agnostic buts depends on Eigen) together with my scenegraph library
> (which uses the PCL and my data model as a dependency). I am wondering which
> architecture I can use in order not to get a link error because of the eigen
> symbols being declared twice (eigen symbols are being declared both in the
> data model and in the PCL).
>
> Anyone as such a linking experience? Was this issue solved in the case where
> the PCL is used within ROS? I guess the same problems happens here as both
> the PCL and ROS use eigen?

As long as you are linking everything against the same Eigen version,
there should be no problem and I've never encountered any in ROS. If
there is really a problem, please send a minimal example and the error
messages.

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Eigen linking symbols

Antoine Rennuit
Hum I am happily surprised this turns out so easy... Will give it a try in
the next days.

Thanks a lot Jochen ;)

-----Original Message-----
From: Jochen Sprickerhof [mailto:[hidden email]]
Sent: vendredi 22 novembre 2013 09:03
To: [hidden email]; Point Cloud Library (PCL) users
Subject: Re: [PCL-users] Eigen linking symbols

Hi Antoine,

* Antoine Rennuit <[hidden email]> [2013-11-21 13:07]:

> I am currently putting together an application with uses the PCL
> together with ROS (eventually). My application uses a data model which
> is based on eigen as for the matrix related data.
>
> In the first step I only plan to integrate my data model library
> (which is PCL agnostic buts depends on Eigen) together with my
> scenegraph library (which uses the PCL and my data model as a
> dependency). I am wondering which architecture I can use in order not
> to get a link error because of the eigen symbols being declared twice
> (eigen symbols are being declared both in the data model and in the PCL).
>
> Anyone as such a linking experience? Was this issue solved in the case
> where the PCL is used within ROS? I guess the same problems happens
> here as both the PCL and ROS use eigen?

As long as you are linking everything against the same Eigen version, there
should be no problem and I've never encountered any in ROS. If there is
really a problem, please send a minimal example and the error messages.

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users