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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -