I want to use the same program code as for an application on a Linux-PC (GNU GCC/G ++). Is this possible?
For OpenSplice we use the cygwin environment only for tools like make, flex, bison and the bash scripting: the OpenSplice source code is compiled with the Microsoft compiler from within the cygwin environment. This means that the resulting libraries and executables are identical to versions that would have been built as Visual Studio projects. The advantage of this is that you have seamless integration with most of the software that is deployed on the Windows platform.
In the past we did build using the cygwin provided compiler and linker toolchain, but the resulting libraries (in particular static libraries) were not always usable for Visual Studio developers. Hence the move to the Microsoft compiler.
If you wish to build the product again using the cygwin toolchain it would be a large job which we would not recommend. There would be a severe impact on all the makefiles and it would also effect the Windows abstraction layer that now uses calls directly into the Microsoft kernel instead of into the cygwin POSIX layer.