To run c program in linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • udhayakarthick
    New Member
    • Nov 2006
    • 16

    To run c program in linux

    Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

    Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
  • FuerzaDelDios
    New Member
    • Dec 2006
    • 10

    #2
    Originally posted by udhayakarthick
    Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

    Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
    U can complie ur C programs in Linux using a gcc complier.

    type the command
    "gcc <filename>"

    this will generate a a.out file. u can run ur prog using "./a.out"

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      Originally posted by udhayakarthick
      Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

      Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
      so long as your C/C++ is does use any Turbo C specific header files etc it should compile with gcc or g++. Otherwise you can try running Turbo C using Wine
      http://www.winehq.com/

      Comment

      • sasmitanayak
        New Member
        • May 2007
        • 1

        #4
        hi everbody. i m sasmita. my problem is already i m using linux OS but when i m compiling any C program or C++ program that is not running and compiling also . i m using the command gcc/g++ for c/c++ command but it is showing that command is not found and i have loaded the linux Os i.e the Fedora core

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          You probably do not have gcc installed in that case.

          Originally posted by sasmitanayak
          hi everbody. i m sasmita. my problem is already i m using linux OS but when i m compiling any C program or C++ program that is not running and compiling also . i m using the command gcc/g++ for c/c++ command but it is showing that command is not found and i have loaded the linux Os i.e the Fedora core

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            You will need to use gcc as your compiler. You may need to do some tweaking to your compilation command line, but if you are using ISO compliant C, everything should work fine.

            Just check to see that your LiveCD distro has gcc with it, otherwise you won't be able to do it.

            Originally posted by udhayakarthick
            Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

            Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.

            Comment

            • askcq
              New Member
              • Mar 2007
              • 63

              #7
              can anyone let me know the link from where it install fedora core linux

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Google is your friend.
                Fedora core 6

                Comment

                • Motoma
                  Recognized Expert Specialist
                  • Jan 2007
                  • 3236

                  #9
                  Originally posted by askcq
                  can anyone let me know the link from where it install fedora core linux
                  Not exactly sure what you are asking, please elaborate.

                  Comment

                  • askcq
                    New Member
                    • Mar 2007
                    • 63

                    #10
                    i want to know the link to install fedora core linux

                    Comment

                    • drhowarddrfine
                      Recognized Expert Expert
                      • Sep 2006
                      • 7434

                      #11
                      I posted it. See #8 above.

                      Comment

                      • Motoma
                        Recognized Expert Specialist
                        • Jan 2007
                        • 3236

                        #12
                        Google is the place for questions like this.

                        The Fedora Project

                        Originally posted by askcq
                        i want to know the link to install fedora core linux

                        Comment

                        Working...