Compiling Issues In C Using Windows and Linux

Discussion in 'C' started by pc_doctor, Nov 29, 2007.

  1. pc_doctor

    pc_doctor New Member

    Joined:
    Nov 29, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    When compiling in emacs in linux i can not run the .exe in windows, though i can in Linux.

    How do i compile a .c program to run in Windows?

    And likewise when compiling in Dev-C and trying to run the .exe in Linux it doesn't work.

    Any help would be grateful

    Jon
     
  2. Salem

    Salem New Member

    Joined:
    Nov 15, 2007
    Messages:
    133
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Please don't PM me for 1:1 support.
    The source code is portable, not the resulting executable.

    You copy your .c file to your Linux box, and use gcc to compile it.

    You copy your .c file to your windows box, and use dev-c++ to compile it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice