[ros-users] rospack namespace clash due to TinyXML?

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: User discussions
Dato:  
Til: ros-users
Emne: [ros-users] rospack namespace clash due to TinyXML?
Hi everyone,

recently I had a problem with a small camera trigger ros node. rosmake
was linking against rospack (-lrospack) and librospack seems to export
symbols from TinyXML without a special namespace, which then clashed
during runtime with another (shared) library, that I have to use and
which also uses TinyXML and exports the corresponding symbols.

Since I cannot change the shared lib, I wrapped namespaces around
tinyxml-2.5.3 under [...]/cturtle/ros/tools/rospack/tinyxml-2.5.3 and
changed the function calls accordingly.

Perhaps there is a better way to solve this namespace conflict and
someone can point me in the right direction?
The problem with my solution is, that it will be gone after the next
ros-update...

Greetings,
Leif