Thread: Compiler that doesn't need to be installed

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Akkernight
    And by path seperator, it means? I don't have to include what's before it?
    For example, suppose the existing path is like this:
    Code:
    %SystemRoot%\system32
    You would then change it to:
    Code:
    %SystemRoot%\system32;C:\MinGW\bin
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Why o.o? C:\ ain't in system32, is it?
    Currently research OpenGL

  3. #18
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Why o.o? C:\ ain't in system32, is it?
    That's what the path separator is for. It says that you have one path, "%SystemRoot%\system32", and another "C:\MinGW\bin".
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #19
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    ohh... Now I get it xD

    But why does he use path=%path% then o.O?
    Currently research OpenGL

  5. #20
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Akkernight
    But why does he use path=%path% then o.O?
    The %XYZ% refers to an existing environment variable named XYZ. Anyway, you don't need to care too much about this when all you want to do is set the system path so you can use your C and C++ compilers without fully specifying their pathnames
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #21
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Yeah, I figured it out, feel dumb now xD anyways, I didn't have admin rights, so couldn't place it under system variables, but under this account's variables, and just named it Path :P oh and I got it working, so thanks for helping me with this! Learned how to compile using commandline and learned loads about how windows command stuff works ^^
    Currently research OpenGL

  7. #22
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by Akkernight View Post
    ok, this I don't understand xP I found those variables, so I add a new one and enter
    Code:
    path=%PATH%;c:\mingw\bin
    just like that? Also include the "path=" ? and I don't have any mingw-gcc.exe
    I provided a link to a preinstalled copy of the mingw directory, you can use it directly from that, it sin self extracting format. Yes type it exactly as I did including the path= and the % signs.

    You will have to do that every time you open a new dos box, unless you permanently add it tot ehpath variable through teh settigns menu as laserlight mentioned.

    Commandline or non-IDE compilation is clearly the worst thing ever invented! >.<
    BLASPHEMER!!!!!


    Last edited by abachler; 01-21-2009 at 05:38 PM.

  8. #23
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    I do indeed find no problems with the nuwen build. It used to include newer GCC (but I think the official distribution has been updated to 4.x, too) than the official distro. Another thing I like about it is that it includes a few common libraries - Boost, SDL, etc. Saves some time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  4. Borland command line compiler issues.
    By NinePin in forum C Programming
    Replies: 5
    Last Post: 09-05-2002, 05:44 PM
  5. GNU Public Domain Compiler
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-22-2002, 06:55 AM