0

I have a cpp function defined in a dynamic library like this

namespace A
{
namespace B
{
    class C
    {
     public:
        static funcA();
    };
}
}

Now I am calling the above function from obcpp.mm file in the following manner:

void sample()
{
    A::B::C::funcA();
}

This gives me error like Undefined Symbol A::B::C::funcA

Would highly appreciate any help regarding this.

5
  • Did you import the namespace? Commented Oct 4, 2017 at 5:21
  • I just included the header file that declares the whole thing. Commented Oct 4, 2017 at 5:33
  • I have seen it, however, it didn't resolve the issue Commented Oct 4, 2017 at 5:42
  • Hold on. Undefined symbol? What is the error message verbatim? Commented Oct 4, 2017 at 7:21
  • ld: symbol(s) not found for architecture clang: error: linker command failed Commented Oct 4, 2017 at 8:47

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.