1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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