problem to compile

This is a discussion on problem to compile within the C++ Programming forums, part of the General Programming Boards category; hi can someone help me? i have one problem that i can't compile my program when i compile in ms ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    problem to compile

    hi
    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
    Location
    Out of scope
    Posts
    4,066
    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
    Location
    Portugal
    Posts
    7,404
    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
    The programmerís wife tells him: ďRun to the store and pick up a loaf of bread. If they have eggs, get a dozen.Ē
    The programmer comes home with 12 loaves of bread.


    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
    Location
    Canada
    Posts
    8,046
    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:
    Code:
    C:\>cd Dev-Cpp\bin
    
    C:\Dev-Cpp\bin>g++ --version
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    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-20-2008, 11:16 PM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21