mingw help

This is a discussion on mingw help within the Tech Board forums, part of the Community Boards category; Can anyone help me set up mingw to get it working? i installed the package from http://sourceforge.net/project/downl...3.exe&17992591 and i check ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    109

    mingw help

    Can anyone help me set up mingw to get it working? i installed the package from http://sourceforge.net/project/downl...3.exe&17992591
    and i check g++ and mingw make, it installed but i can't compile in windows command window

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Is this a continuation of previous threads? If so, you may not be doing yourself a favor by spreading it out.

    What is the actual question?
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    no its not. the problem is that it doen't work. i get the error g++ is not a recognized command.

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Is the executable in your path?

    [edit]How are you calling it? Etc., etc.?

    I can't see what's on you monitor, and I'd bet that very few can.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    i cd into the directory then do g++ -c file.cpp

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    Ah, so is C:\MinGW\bin (or the relevant path) in your system path?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by DarkDot View Post
    i cd into the directory then do g++ -c file.cpp
    You're putting your source code into the implementation directory? Yeach.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  8. #8
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    i did what you said in the pm and where path was i edited and deleted the whole line and put that. But when i compile my project folder is in just c so i cd into there then compile.

  9. #9
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    implementation directory? i have the mingw director and the project directory which are separate from each other, when i try to compile i go into the project directory and g++ and get the error. If your talking about putting the headers and .cpp files together than yes. I can compile in linux but am trying in windows as u can see.

  10. #10
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    277
    Try "g++ --version" to check it is properly installed or not?

  11. #11
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    yea it comes up saying its installed

  12. #12
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    oK i can get it to compile my programs but how do i now get make to work?

  13. #13
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    when i type make it says make is not a recognized command

  14. #14
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Same deal, make must be in your PATH. Find out where make is, and do so.
    I'm not sure if make comes with MinGW by default. There might be a make called "mingw32-make" (try calling that from the cmd line). "make" itself is available from MinGW's website.
    I suggest you google for some tutorials on what exactly the PATH variable does. Specifically, the PATH is "directories that will be searched for programs not in the current directory".
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  15. #15
    Registered User
    Join Date
    Mar 2007
    Posts
    109
    does someone have a more difinitive answer for this
    Last edited by DarkDot; 04-16-2007 at 06:47 PM.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mingw and elcipse HELP
    By Rob4226 in forum Windows Programming
    Replies: 1
    Last Post: 03-04-2008, 12:35 AM
  2. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  3. Free compiler for commercial development? (mingw?)
    By kook44 in forum Windows Programming
    Replies: 8
    Last Post: 01-07-2006, 08:32 AM
  4. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  5. Convert Microsoft LIB to MingW compatible lib
    By tigs in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2004, 06:53 PM

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