Compiling for other OSs on a Windows machine

This is a discussion on Compiling for other OSs on a Windows machine within the Tech Board forums, part of the Community Boards category; I've downloaded Cygwin, and I'm quite impressed. I noticed that when I was selecting the packages to install, it had ...

Compiling for other OSs on a Windows machine

I've downloaded Cygwin, and I'm quite impressed. I noticed that when I was selecting the packages to install, it had a set of compilers I could use. Will these compilers take my source code and compile it to a Linux-executable even though it is on a Windows machine? And I know there are sometimes cases where something will run on one version of Linux, but not another. This program will be in C using the SDL library (although not officially ported to Linux yet), and I won't be using any platform-specific APIs - will this still have problems on some Linux machines? I'd also like to know if there are similar compilers that can compile for Solaris or BSD, also while running on a Windows system.

no. if you compile with cygwin you will be generating exe's. If the code is compiled for linux (using a cross-compiler) it can only be executed on that platform (ex, linux binaries dont run on BSD, or SUN). however, if the code is not using platform specific api's, you should be able to compile it on any of these platforms. (ie. distribute the source not the binary, most of us in the linux world prefer it that way )

Let me make sure I follow this... you mean the binary can be run on a native linux machine right... or do you mean it can only be run on another Cygwin install?

With Penguin-Does you can run and compile native linux binaries (assuming you install GCC, or some other compiler).

I haven't checked the download in some time... but just to "warn" you it comes with eAcceleration (not necessarily a bad thing, but some people may not appreciate it. In the future this bundling will change)

edit: I looked at their website and it looks like a full-out OS. Is it not just an emulator?

Well, it's not a full-out OS or an emulator... I guess I really don't know how exactly to explain it. It runs unmodified linux binaries, some version of Debian (not sure which)... but on Windows. I suppose maybe it could be classified as an emulator? What is Cygwin considered?

Or are you talking about Debian? Debian itself is a full out OS. Penguin-Does is simply built around Debian packages.

Sorry about the eAcceleration stuff. Like I said, sometime in the future it should be quite different... (FYI, yes, I work for eAcceleration. The Penguin-Does website is *old* and uses *old* stuff. Our *new* stuff is WAYYYYYY different then what you get from the Penguin-Does site. No more bundling, only download and install what *you* want!) For what it's worth all of the other eAccelertion stuff can be totally uninstalled without ruining Penguin-Does. It comes with an MSI installer which gets extracted to the install directory. If I remember correctly this is either %program files%\eAcceleration\Penguin-Does or %program files%\Acceleration Software\Penguin-Does. Just copy that MSI elsewhere, uninstall everything using Windows add/remove programs, and reinstall Penguin-Does... I hate having to give instructions like this, but I think Penguin-Does is the best app of it's type out there.

I'm not doing anything more with eAcceleration products. Only now am I managing to keep up with what it's done to my PC. From what you said - Debian is an emulator. Cygwin I'm not sure... It doesn't sound enough like Linux to be considered an emulator. It's more a simulator in my opinion.

No, it won't. What I was trying to say was Penguin-Does is based on Debian. Debian is a Linux distrobution. Penguin-Does allows you to run Debian on Windows. K?

I also think your description of Cygwin is fair.. it's more of a simulator. That's where the two products differ quire a bit. Cygwin is *not* Linux. It will *not* run compiled Linux binaries. Penguin-Does on the other hand, will

Yeah... we were going to name it Penguindows until the boys at Microsoft had their pick at it [edit] Almost missed half the question. Honestly I have no idea if it's an x-86 emulator or not... I suppose that would make sense though.

Thanks for the link to Bochs, looks interesting! I'll have to check it out.