Posted on 2004-11-10
Last Modified: 2010-04-22
how can i make .exe files in linux?
Question by:jfeltus
    LVL 95

    Expert Comment

    by:Lee W, MVP
    Can you explain more specifically what you are trying to do?  Linux determines if a file is executable by the permissions on the file - rwx - where r=read, w=write, x=executable.  Assuming you have a file you can be executed, try chmod'ing the file to 755 -

    chmod 755 file

    LVL 38

    Accepted Solution


    # gcc test.c -o test.exe
    # chmod +x test.exe
    # ./test.exe  <=== run test.exe

    # g++ test.cpp -o test.exe
    # chmod +x test.exe
    # ./test.exe

    LVL 95

    Expert Comment

    by:Lee W, MVP
    understand - you don't have to call it an .exe - you could call it test.joe if you wanted to.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now