¡@

Home 

2014/10/15 ¤U¤È 10:07:25

iphone Programming Glossary: donothing

Calling C++ method from Objective C

http://stackoverflow.com/questions/4456239/calling-c-method-from-objective-c

C file test_viewcontroller.h 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.. 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 double var donothing somevar I get linker error.. say it is double donothing double a return a Now I try to call this function in test_viewcontroller.m double var donothing somevar I get linker error which says cannot find symbols _donothing in test_viewcontroller.o collect2 ld returned 1 exit..