Thread: problem to compile

  1. #1
    Registered User
    Join Date
    Jul 2006

    problem to compile

    can someone help me?
    i have one problem that i can't compile my program
    when i compile in ms dos it show g++ is not recognized as an internal or external command, operable program or batch
    i hope you all can help me!!
    thank you

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Out of scope
    Unless your in *nix, then g++ isn't a command that you can just use anywhere. In Windows, first make sure you have it on your computer, then navigate to the folder in the command line, then you can use it. Or, better yet, you can use one of the many free IDEs that use g++ such as Dev-C++.
    Sent from my iPadģ

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    You can also add your mingw installation\bin path to the PATH environment variable........ you should add your mingw installation\bin path to the PATH environment variable
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Depending on what version you have, the executable might be called gpp.exe, not g++.exe. DOS compilers, such as DJGPP, often have gpp because DOS can't handle a filename with + in it.

    It's far more likely that you just aren't in the right directory or it isn't in the path. With the default installation directory, try this:
    C:\>cd Dev-Cpp\bin
    C:\Dev-Cpp\bin>g++ --version

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 09-14-2008, 02:35 PM
  2. compile problem
    By chintugavali in forum C++ Programming
    Replies: 3
    Last Post: 02-21-2008, 12:16 AM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  4. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  5. size of Object c++ compile problem
    By micha_mondeli in forum C++ Programming
    Replies: 5
    Last Post: 04-06-2005, 01:20 PM