iphone Programming Glossary: foo.h
How do I use a relative path in Xcode project settings? http://stackoverflow.com/questions/1416927/how-do-i-use-a-relative-path-in-xcode-project-settings
Calling C++ method from Objective C http://stackoverflow.com/questions/4456239/calling-c-method-from-objective-c C method from Objective C I have the following files. foo.h C header file foo.mm C file test_viewcontroller.h objective c header file test_viewcontroller.m Objective c file I have.. objective c header file test_viewcontroller.m Objective c file I have declared a method donothing in foo.h and defined it in foo.mm.Lets say it is double donothing double a return a Now I try to call this function in test_viewcontroller.m.. its extension to .mm and you should be good. Alternately put an extern C declaration on your method declaration in foo.h when compiling the C file. You want to have it look like this foo.h #ifdef __cplusplus extern C #endif double donothing..
|