The cygwin and iPhone sdks are installed in windows. After a lot of code is downloaded, the result is a mix of C objective-C. Since the company used to play C ++ games, compilation has always been a problem. I checked a lot of information and compiled it on xcode. Companies are not buying Apple computers, so they have to experiment like crazy. It is found that all files are compiled into assembly code first, and the CPU of MacOSX 10.4 and arm1176jzf-s must be specified during compilation. Then connect. The result is successful. Remember that all the code written in objective-C and objective-C ++ uses the MM suffix.
Mix mix objective-C and C ++ for iPhone on widows
1. Setup cygwin and toolchain
2. Translate and edit sourc files to ASM (*. s) Use mmacosx-version-min = 10.4 arm1176jzf-s
3. Link *. s
Notice not use *. M Please use *. Mm