building an exe file for a c++ program.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigbagy
    New Member
    • Nov 2006
    • 4

    building an exe file for a c++ program.

    Hi :

    I would like to know weather it's possible for me to build an exe file for a c++ program.
    if so, please give it to me in steps.

    Thank you
    Bagy
  • sivadhas2006
    New Member
    • Nov 2006
    • 142

    #2
    Hi,

    Can I know which editor you are using for c++?

    Regards,
    M.Sivadhas.

    Comment

    • mohsin
      New Member
      • Nov 2006
      • 19

      #3
      Originally posted by sivadhas2006
      Hi,

      Can I know which editor you are using for c++?

      Regards,
      M.Sivadhas.
      HI would u like to tell me the name of editor u r using.

      Comment

      • sanjay123456
        New Member
        • Sep 2006
        • 125

        #4
        Sir ,

        If we r using GNU compiler then waht is the procedure to make a exe filw in C++

        sanjay

        Comment

        • NevinGeorge
          New Member
          • Nov 2006
          • 1

          #5
          Building an exe file is relatively easy in Turbo C++.
          There is an option called Make Exe in the Run Tab.If Not search the tabs to see Make Exe.It is better to build a program before Making the Exe.Also make sure of those bugs.(Platform : Windows).
          In Linux things are different and I am not aware of this.If you get to know please do make sure you tip me in.

          Best Wishes
          Nevin

          Comment

          • sivadhas2006
            New Member
            • Nov 2006
            • 142

            #6
            Hi Bagy,

            Please try this link...


            To compile the program you can use the following syntax.

            Code:
            gcc -c <filename_to_compile>
            Regards,
            M.Sivadhas.

            Comment

            • horace1
              Recognized Expert Top Contributor
              • Nov 2006
              • 1510

              #7
              Originally posted by sanjay123456
              Sir ,

              If we r using GNU compiler then waht is the procedure to make a exe filw in C++

              sanjay
              for a C++ file test.cpp try
              g++ test.cpp

              the output file is called a.out in Unix or a.exe in windows

              if you need to specify the name of the output file
              g++ test.cpp -o test.exe

              would call the output file test.exe

              Comment

              Working...