OS X Xcode / clang for creating Windows executables?

Is it possible to create classic Windows executables (Windows 8 support is not required) from C source code using the latest Xcode / clang compilers on the current Mac (for example, without using gcc or a virtual machine to run Linux or Windows)?

+4
source share
1 answer

Thinking why the hell would you want to do this? , I was just surprised and found what really could be a solution!

Cocotron

Cocotron is an open source project whose goal is to implement the cross-platform Objective-C API, similar to that described in the documentation of Apple Inc. Cocoa This includes AppKit, Foundation, the Objective-C runtime, and supporting APIs such as CoreGraphics and CoreFoundation.

Also see this blog post: Win-win with Cocotron and Xcode 4.3 - Code for Mac, Build for Windows (Part 1)

Although the last entry on Cocotron's website was from 2010, so it may or may not be live

+3
source

Source: https://habr.com/ru/post/1497037/


All Articles