How to build a program to be run on Linux machine

Posted on 2011-10-17
Last Modified: 2012-05-12
I would like to build a small executable program that would be run on a linux box. The program would be equivalent to a C# console app on a windows PC. What programming language, IDE would be  best to build this application to be run on a linux machine
Question by:wademi
    LVL 69

    Expert Comment

    by:Éric Moreau
    check if Mono can help you with your specific project:
    LVL 20

    Accepted Solution

    c# is microsofts updated version of c++ which is the updated OO model version of c.

    Both c and c++ are very well supported under Linux and most of the apps that sit on top of the linux kernel are written under one of these languages.
    If you can, work with c++

    Author Comment

    So If I build a console app in C++ using visual studios 2010 I will be run it on linux?
    LVL 69

    Assisted Solution

    by:Éric Moreau
    >>So If I build a console app in C++ using visual studios 2010 I will be run it on linux?

    LVL 8

    Assisted Solution

    The C compiler on Linux systems is GCC, which is command line only.  Most programs for Linux are developed using command-line tools.  

    For IDE, I recommend Eclipse, with CDT.  Look under "resources" for tutorials.
    LVL 2

    Expert Comment

    LVL 7

    Assisted Solution

    Nothing you make in Visual Studio will compile for Linux. Microsoft doesn't support linux, and so their compiler will not make anything for Linux. Why would they want to support the competitor, especially when they'd not make any money from it?

    Mono would be a good choice, which is basically an Open Source version of C#. C++ is good. Just make sure that your code is able to be compiled with something that is linux friendly.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now