command liine compiler for windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Man4ish
    New Member
    • Mar 2008
    • 151

    command liine compiler for windows

    Hi ,
    I am working on windows for first time . I have experience on linux only. How can run the command line C++ program on windows . Is there any compiler for windows which is compatible for command line .Please let me know.

    Manish Gupta
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    I sometimes use MS VS 2008 which allows you to compile files from the command prompt as well.

    Comment

    • Lintwurm
      New Member
      • Sep 2008
      • 7

      #3
      hello, why not try the Borland compiler?

      We use it at our university...

      Download at http://www.cs.up.ac.za/module.php?spc= cb&module=COS13 5

      The first tutorial on the site should help you out with the setup...

      Hope this helps =)

      Comment

      • Man4ish
        New Member
        • Mar 2008
        • 151

        #4
        Originally posted by Lintwurm
        hello, why not try the Borland compiler?

        We use it at our university...

        Download at http://www.cs.up.ac.za/module.php?spc= cb&module=COS13 5

        The first tutorial on the site should help you out with the setup...

        Hope this helps =)
        I have downloaded and installed the borland but when i save a simple program in Bin and run it using g++ or gcc it is giving error not known commands .
        Where i need to save the program and run them .

        Manish Gupta

        Comment

        • Laharl
          Recognized Expert Contributor
          • Sep 2007
          • 849

          #5
          Of course not. g++ and gcc are the GNU compiler collection and its C++ compiler. Borland is a different compiler vendor, one I don't really know anything about. Thus, the command line interface is sure to be different. My recommendation is to Google for "Borland 8.0 (or your version number) command line".

          Comment

          • Lintwurm
            New Member
            • Sep 2008
            • 7

            #6
            I'm not sure, but I think you should use bcc32 instead of g++ (And I think that you have to be in the right directory as well... which as default should be C://borland/bcc32/bin)... Once in the right dir, type the program source code name and enter...

            If this doesn't work though, why not work in Scite? It compiles for you and runs the program too...

            Hope this helps=)

            Comment

            Working...