error: reference to 'TRAC_IK' is ambiguous

Issue #52 resolved
Former user created an issue

When I compile it on mac, I got this errors.

/build/trac_ik_python/trac_ik_wrapPYTHON_wrap.c:5609:12: error: reference to 'TRAC_IK' is ambiguous
SWIGINTERN TRAC_IK::TRAC_IK *new_TRAC_IK_TRAC_IK(std::string const &base_link,std::string const &tip_link,std::string const &urdf_string,double timeout,double epsilon,std::string const &solve_type="Speed"){
           ^
/opt/ros/lunar/include/trac_ik/trac_ik.hpp:42:11: note: candidate found by name lookup is 'TRAC_IK'
namespace TRAC_IK {
          ^
/opt/ros/lunar/include/trac_ik/trac_ik.hpp:46:9: note: candidate found by name lookup is 'TRAC_IK::TRAC_IK'
  class TRAC_IK

Comments (5)

  1. v4hn

    Apparently I am not allowed to file pull-requests here (???), but here is a one-line patch to resolve the problem. The use-namespace was not used to begin with, so it can simply be dropped.

    The same problem occurs with clang-6 & swig 3.0.12 and although there is only one correct way to resolve the symbol in practice, the ambiguity is not resolved by clang. I suppose they interpret the standard stricter than gnu's gcc.

    It would be great if you could add this fix to your master branch soon.

  2. Patrick Beeson Account Deactivated

    There should be nothing stopping you from filing a PR. Multiple others have done it in the past.

  3. Log in to comment