Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. C++ Programming

C++ Programming

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
questionc++linux
9 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

    L H W A A 7 Replies Last reply
    0
    • A AmbiguousName

      hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try a Google search for Linux C C++ compiler, I'm sure you will find many possibilities. My personal favourites were gcc with vi/emacs as editors, but things have progressed since those dark days of the twentieth century.

      It's time for a new signature.

      A 1 Reply Last reply
      0
      • L Lost User

        Try a Google search for Linux C C++ compiler, I'm sure you will find many possibilities. My personal favourites were gcc with vi/emacs as editors, but things have progressed since those dark days of the twentieth century.

        It's time for a new signature.

        A Offline
        A Offline
        AmbiguousName
        wrote on last edited by
        #3

        thanx......sometimes im short of tech words for such questions.thanx

        1 Reply Last reply
        0
        • A AmbiguousName

          hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

          H Offline
          H Offline
          HimanshuJoshi
          wrote on last edited by
          #4

          Emacs is one such tool that can be used as a compiler and editor. But I would stick with vi as editor and gcc command line, which is far better than any of the tools you get.

          "I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn

          1 Reply Last reply
          0
          • A AmbiguousName

            hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

            W Offline
            W Offline
            wbgxx
            wrote on last edited by
            #5

            g++ vim

            1 Reply Last reply
            0
            • A AmbiguousName

              hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

              A Offline
              A Offline
              Anna Jayne Metcalfe
              wrote on last edited by
              #6

              Eclipse/CDT is fairly easy to get to grips with if you're used to IDEs.

              Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

              1 Reply Last reply
              0
              • A AmbiguousName

                hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

                A Offline
                A Offline
                Ajay Bhausaheb Kedare
                wrote on last edited by
                #7

                Just use vi editor to create text file and save it with extension ".cpp" Now compile it with "gcc ". Then run it with "./a.out". -By Ajay Kedare. B.Tech(IT)

                1 Reply Last reply
                0
                • A AmbiguousName

                  hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

                  _ Offline
                  _ Offline
                  _beauw_
                  wrote on last edited by
                  #8

                  It is definitely possible to find something like Turbo C++, but the setup process is not as clean as it was for Turbo C++. I would start with the "nano" or "pico" editor, instead. You can run this from any shell window. Just type "nano myprog.cpp" (or type "pico myprog.cpp" if that doesn't work; the programs are basically identical). In both cases, a very basic editor is provided. The most necessary features are present: arrow keys, backspace, search, and a form of cut/paste. The commands are CTRL+ key sequences spelled out in a legend at the bottom of the display. After typing your code, you'll have to exit the editor using CTRL+X, press "Y" to save, and then type something like "c++ myprog.cpp" (or maybe "g++ myprog.cpp"). An empty response (i.e. a relatively quick return to the command prompt) implies success, and the resultant executable is typically named "a.out." So, you can run your program by typing something like "./a.out" (the ./ means to search in the present working directory). These are the basics... many things resembling IDEs are basically just wrappers for the process described above!

                  1 Reply Last reply
                  0
                  • A AmbiguousName

                    hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??

                    I Offline
                    I Offline
                    Iranian MM
                    wrote on last edited by
                    #9

                    The best and powerfull Development tool in linux is Vim Enjoy it.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups