c++ - How to add existing cpp codes to an objective-c project? -


i have class written in c++, declaration , implementation seperated .h , .cpp files. , want invoke in ios objective-c project xcode. changed suffix of *.m file *.mm , compilation ok, failed in linking step.

ld: symbol(s) not found architecture arm64

it seems compiler did not discover *.cpp file of implementation of class. when move implementation it's *.h files, program works codes ugly.

can help?i have tried change suffix of cpp mm, no success.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -