I have a C++ class, which is referenced, and then i am going to declare a variable. I declare in objective-c:
cObject obj = cObject();
obj.myFunct("test");
but there seems to be a linker error. It says:
Undefined symbols for architecture armv7:
"cObject::cObject()", referenced from:
-[...] in xxx.o
___cxxx_global_var_init in xxx.o
"cObject::myFunct(std::__1:basic_string<char,str::__1::char_traits<char>, str::__1::allocator<char> >)", referenced from:
-[///] in xxx.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1(use -v to see invocation)
Edit: First error resolved in comments: Dont define an empty constructor resolved the first part. The second part refers to calling obj.myFunct("test");