Thanks for the fast reply. Do you (or anybody) know of any examples where this has been done? I would like to do a rebuild with the Linux code right in the executable but I am really unsure how that would work in detail. Of course I'd need the kernel headers etc. on the Windows build environment but how about linking, calling conventions etc.? Remember it's not a GCC compiler I am working with.