can I use objective-c to create modules?

Monkey Targets Forums/iOS/can I use objective-c to create modules?

anawiki(Posted 2011) [#1]
I am wrapping objective-c kit to make module for in app purchases. The problem is I don't know how to include other files in native code file (cpp file). So I copied content of those .m files into my main native file, but I get such errors:

/Users/roman/Desktop/anawiki games src/Avalon Monkey/avalon.build/ios/main.mm:2734: error: 'MKStoreManager' was not declared in this scope

While MKStoreManager is declared some lines below.

Any ideas?


anawiki(Posted 2011) [#2]
:(
what I wrote here previously didn't work.


therevills(Posted 2011) [#3]
Make sure your imports are in the correct order... we had a similar issue with Diddy, where we were trying to access a mojo class but we had Import diddy before Import mojo and it messed up.