C++ functions in Objective C -


i getting bit confused how call c++ functions in objective c.

i've declared functions as:

void initializesearchregistration(); 

in header file in between interface , end. i've defined in mm file as:

void initializeserviceregistration() { } 

what struggling how define public ensure other classes can see it. i've tried public error. c++ methods have declared in class block.

any advice great.

you can't add c++ member functions objective-c class using objective-c++. should consider redesigning class either have totally c++ interface (in case should c++ class or struct) or totally objective-c interface (in case should define objc class , instance methods, not c++ member functions).


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -