• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coding a plain C application in XCode with windows compatibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding a plain C application in XCode with windows compatibility


  • Subject: Re: Coding a plain C application in XCode with windows compatibility
  • From: "Mark Wagner" <email@hidden>
  • Date: Tue, 3 Oct 2006 13:44:22 -0700

On 10/3/06, Kuon - Nicolas Goy (Goyman.com SA) - 時期精霊 <email@hidden> wrote:
Hello folks,

I know my problem is not "really" an xcode matter, but it comes to
XCode as I do all my coding under XCode.

There it is: I create a plain C application, with no libraries except
stdlib, pthreads, SDL and OpenGL. This application will be huge,
anyway, I've been a C, Java, Cocoa coder for many years now, but I
never coded a single line of any language under Windows.

So, what I want, is hapily code under XCode, and when I wanna test my
code under windows, XCode create "something" I can use to compile
under windows.

After some search, I was able to find MinGW, which seem to be the
alternative to Visual Studio, and it use gcc and makefiles.

It would be superb if XCode could create a Makefile (and maintain it
up to date) so I can just "make" under windows to compile my project.

I found http://lists.apple.com/archives/xcode-users/2003/Dec/
msg00047.html

and some others, but they are 3 years old, so I don't know what is
the current situation.


With the use of a sufficiently large crowbar, you can convince Xcode to compile a Windows application. I've used the instructions at http://www.zonic.co.uk/products/mingw/ for setting up MinGW as a cross-compiler, except that instead of trying to tell Xcode that MinGW is a new compiler, I used symbolic links and wrapper scripts to make Xcode think that the MinGW cross-compiler is actually GCC 2.95 for Mac.

--
Mark Wagner
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Coding a plain C application in XCode with windows compatibility
      • From: " Kuon - Nicolas Goy (Goyman.com SA) - 時期精霊 " <email@hidden>
References: 
 >Coding a plain C application in XCode with windows compatibility (From: " Kuon - Nicolas Goy (Goyman.com SA) - 時期精霊 " <email@hidden>)

  • Prev by Date: Re: Coding a plain C application in XCode with windows compatibility
  • Next by Date: Re: Cross Development using Xcode 2.4 with 10.2.8 SDK
  • Previous by thread: Re: Coding a plain C application in XCode with windows compatibility
  • Next by thread: Re: Coding a plain C application in XCode with windows compatibility
  • Index(es):
    • Date
    • Thread