Re: Coding a plain C application in XCode with windows compatibility
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