compiling a C++ program on Linux

Discussion in 'Computer Science & Culture' started by Ender, Jun 11, 2003.

Thread Status:
Not open for further replies.
  1. Ender Registered Senior Member

    Messages:
    294
    Some one told me that I can compile a c++ program on Linux with bcc or something like that. Can anyone tell me how to run the thing??
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. AntonK Technomage Registered Senior Member

    Messages:
    1,083
    Well, you can use bcc (Borland I assume you mean). But it's probably smarter to use GCC (GNU C Compiler). If it is c++, you actually want to use G++. These are found in almost every Linux Distroy. If it is a simple C++ program you can just type:
    Code:
    g++ -o mynewexecutable mysource.cpp
    It's not that hard. But if it is a major program you should probably use a make file.

    -AntonK
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Ender Registered Senior Member

    Messages:
    294
    Makes sence! Thanks
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page