<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><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>