<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Thanks Josh,</DIV>
<DIV>It works.</DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Josh Faust <jfaust@willowgarage.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> User discussions <ros-users@code.ros.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, October 7, 2010 5:32:06<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [ros-users] Communicating between two user created packages<BR></FONT><BR>
<DIV class=gmail_quote>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>undefined reference to `my_namespace::X::X()`<BR><BR></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>You need to add the linker flags to the exports as well.  For example, from roslib:</DIV>
<DIV>lflags="-Wl,-rpath,${prefix}/lib -L${prefix}/lib -lroslib"</DIV>
<DIV><BR></DIV>
<DIV>Josh</DIV>
<DIV> </DIV></DIV></DIV></DIV></div><br></body></html>