At 1/12/14 02:27 PM, egg82 wrote:
ah, awesome. So, if I wanted to compile my code for Win, Mac, and Linux on my current Win system without switching OSes and compiling on the different systems, what would I do? I'm sure there's a way. Maybe.
There isn't. The closest that you could get would be to run a virtual machine on your Windows computer, and use that to run Linux and/or OSX, and compile from there.
If you want to have a one-compile-and-go type application then you will need to use an application that itself runs on a virtual machine. The only language I know of that is in wide-spread use that can do that is Java, but that will require the user to have Java installed, and not everyone does (I don't, for example, because it's a huge security risk).
Another solution would be to instead use a high-level language such as Python or Ruby, as they won't require any compilation, so you could just use a batch script of sorts to run the application.
You might be able to compile the application once and have it run on both Linux and OSX, but no way in hell will that work for Windows as well. Microsoft doesn't like open-source technologies, or using anything that they didn't make, which is why they have their own C/C++ compiler (and it sucks).
Building/running code on Unix-based operating systems (e.g. Linux and OSX) is easy-peasy, so you could just let the end-user do that their self, and only compile the Windows versions for Windows users.
Long story short: there's no quick and easy way to get your thing to work on Windows, Linux and OSX together if you're using C/C++. They are just too low-level of languages, so it comes with the territory.