Compiling objective-C and C ++ iPhone applications in Windows

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.