Results 11 to 12 of 12
Originally Posted by egan
If your screensaver uses system calls specfic to linux or library calls for specific packages it will most likely not work on windows.
Nope it is ...
- 07-14-2009 #11Just Joined!
- Join Date
- Jul 2009
- Location
- India
- Posts
- 24
- 07-14-2009 #12
So you have C source code. Assuming that you only use the standard library, your C code can theoretically be compiled to run on either Windows or Linux. However, you cannot use a single binary for both of these systems.
Windows uses the EXE format for its binaries, and these are produced by Windows compilers. Linux, on the other hand, uses the ELF format. Windows does not understand ELF binaries, and Linux does not understand EXE ones.
So to get the binary is simple. On Windows, use a Windows C compiler. MinGW has already been suggested: this is a Windows port of GCC. On Linux, use GCC as normal.
It should be as simple as just running the compiler. What difficulties are you having?DISTRO=Arch
Registered Linux User #388732



Reply With Quote