Hi All ,
I'm fairly new to Iphone development. I created View based application and copied C ++ class that i have created a while back to use. First i did drag my h/cpp files to the Classes folder. Changed MyViewController.m File Type to soucecode.cpp.objcpp then #include "eCharBuffer" it compiles fine , but when i try to instantiate/creat an object eCharBuffer mybuff (100,true); it give me the following error ;
Undefined symbols:
"eCharBuffer::eCharBuffer(bool)", referenced from:
-[MapViewController .cxx_construct] in MapViewController.o
"eCharBuffer::~eCharBuffer()", referenced from:
-[MapViewController .cxx_destruct] in MapViewController.o
Unless i define it as a pointer eCharBuffer *mybuff which i dont want to use.
Any Idea Why and how i can fix . I have a lot of C++ code that i dont want to port to Objective C
Thanks In Advace
I'm fairly new to Iphone development. I created View based application and copied C ++ class that i have created a while back to use. First i did drag my h/cpp files to the Classes folder. Changed MyViewController.m File Type to soucecode.cpp.objcpp then #include "eCharBuffer" it compiles fine , but when i try to instantiate/creat an object eCharBuffer mybuff (100,true); it give me the following error ;
Undefined symbols:
"eCharBuffer::eCharBuffer(bool)", referenced from:
-[MapViewController .cxx_construct] in MapViewController.o
"eCharBuffer::~eCharBuffer()", referenced from:
-[MapViewController .cxx_destruct] in MapViewController.o
Unless i define it as a pointer eCharBuffer *mybuff which i dont want to use.
Any Idea Why and how i can fix . I have a lot of C++ code that i dont want to port to Objective C
Thanks In Advace