Compiler that doesn't need to be installed

This is a discussion on Compiler that doesn't need to be installed within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Originally Posted by Akkernight And by path seperator, it means? I don't have to include what's before it? For example, ...

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,327
    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
    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

  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
    21,327
    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".
    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

  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
    21,327
    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
    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

  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,189
    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 04:38 PM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  8. #23
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,167
    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.

Page 2 of 2 FirstFirst 12
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, 05:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10: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

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