I am stuck into an linker errors like below:
"BaseClass<firstClass, secondClass> >::getPosition(std::__1::list<secondClass>*, std::__1::allocator<secondClass*> >&)", referenced from:
vtable for DerivedClass in lib.a(DerivedClass.o)
"BaseClass<firstClass, secondClass >::BaseClass(std::__1::list<firstClass, std::__1::allocator<firstClass > >&, double)", referenced from:
DerivedClass::DerivedClass(std::__1::list<firstClass>, std::__1::allocator<firstClass > >&, double) in lib.a(DerivedClass.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea where I may be wrong while integrating it with C++, however this works fine when using it in C++.
Below line creates this error in ViewController.mm:
DerivedClass *obj = new DerivedClass (*list,50);
Aucun commentaire:
Enregistrer un commentaire