Mike Towler wrote:I think you actually need to be using the CASINO_ARCH 'windowspc-gcc' where the OS is defined correctly - not the linuxpc-gcc one.. Then it won't whine about the kernel/OS.
No, "linuxpc-gcc" is the correct one to use. The Cygwin environment behaves, for our purposes, like a GNU/Linux machine. The "windowspc-gcc" ARCH serves a different purpose, and is obsolete in my opinion. With "linuxpc-gcc", CASINO compiles and runs fine, without the need for further special configuration.
The Warning about the KERNEL and OS variable can be safely ignored. In theory it's possible to eliminate it by making a new ARCH specifically for Cygwin/Linux, based on linuxpc-gcc. However, the Warning does not affect CASINO's operation.
Here comes some technical explanation for the difference between linuxpc-gcc and windowspc-gcc, mostly for clarity. You can safely ignore the text below unless you really want to get into the nitty gritty details.
There are two ways to use the Cygwin environment to compile an application originally written for Linux, in order to run it under Windows. The first is to compile it targeting the Cygwin environment. In this case, the application will require Cygwin to run, but will see an almost complete Linux-like environment, so usually little or no special care needs to be taken. The application does not need to be aware that it's running on Windows.
The second way is to compile the application to natively target Windows. You still need Cygwin for the compilation (as it includes the necessary tools), but in principle the application then does not require Cygwin to run. It will run as a native Windows application. In many cases, this usually involves extra headache, some of the most common issues being difference in path separator (/ vs \) and symlinks. CASINO certainly needs some massaging if it's compiled this way.
When the ARCH is set to "linuxpc-gcc", then the first scenario happens. This is rather painless and in my opinion works well. When the ARCH is set to "windowspc-gcc", then the second scenario happens. This ARCH is rather old, and I don't think that other than Pablo, anyone has ever used it for anything.