Clang C++ Cross Compiler - Generating Windows Executable from Mac OS X
I have created a C++ application using Xcode on my Mac using the Clang compiler. I want to compile my source files to create an executable that can be ran on a windows machine however I cant get Clang to generate me an executable. Here is what I've tried: clang++ -std=c++11 -stdlib=libc++ -arch x86_64 class1.cpp class2.cpp... -o executable.exe This creates an executable however this does not run (Windows gives me an error to do with the application being 16 bit -dont understand this- that cant run on 64 bit) clang++ -std=c++11 -stdlib=libc++ -target i386-pc-win32 class1.cpp class2.cpp For some