How to add C/C++ functions to Objective-C code (iphone related) -
i added .h/.cpp files c functions xcode project. how call c function in objective-c function?
when included c file (#import "example.h") in app delegate header file exploded errors (could treated cpp file objective-c) though compiles fine without being included/imported.
thanks
edit: renaming files m mm fixed issue. getting linker error when building (ld: duplicate symbol)... better research first. again all.
if want use c++ objective-c module, change file extension .m
.mm
.
Comments
Post a Comment