Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
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 ...
  1. #11
    Just Joined!
    Join Date
    Jul 2009
    Location
    India
    Posts
    24
    Quote Originally Posted by egan View Post
    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 running on a windows box.It doesnt use any 'system specific calls'

  2. #12
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...