External function trouble

Monkey Targets Forums/Desktop/External function trouble

Soap(Posted 2012) [#1]
I'm trying to use an external function. I have to use a .m extension for this function but when I do, it gives me this error: "use of undeclared identifier 'functionName'". I tried creating a header file but it doesn't seem to make a difference.

Edit: This only seems to be the case when trying to use obj-c. c++ doesn't have this issue.


anawiki(Posted 2012) [#2]
Heh, I was just to reply that you can't use .m files in Monkey, not sure why, but you can't.\


skid(Posted 2012) [#3]
Have you tried obj-c++ (.mm).

How do you expect people to help if you don't post any code, specifically your function prototype / declaration.