Computer Science Canada MinGW(GCC) Help |
Author: | wassonator [ Sun Jul 05, 2009 11:20 am ] |
Post subject: | MinGW(GCC) Help |
i'm interested in learning c++ and i have read around and decided the compiler i should use is MinGW(GCC)... The only problem is i can't figure out how to install it to save my life. I have tried following the guide here: http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite and it says i have to download the installer executable but i can't find one on the link provided on the page above please help me |
Author: | wtd [ Sun Jul 05, 2009 12:45 pm ] |
Post subject: | RE:MinGW(GCC) Help |
It's under "Automated MinGW Installer". |
Author: | wassonator [ Sun Jul 05, 2009 4:48 pm ] |
Post subject: | Re: MinGW(GCC) Help |
thanks... i went through the installer and checked off the c++ compiler... now im left with a foler containing installed files in my C: drive and a few archived files on my desktop, i can't find anything that will run the compiler also can i get rid of the archived files on my desktop? |
Author: | nike52 [ Sun Jul 05, 2009 8:09 pm ] |
Post subject: | Re: MinGW(GCC) Help |
http://www.mingw.org/wiki/MinGWforFirstTimeUsers |
Author: | wassonator [ Sun Jul 05, 2009 9:12 pm ] |
Post subject: | Re: MinGW(GCC) Help |
really that didnt help at all |
Author: | nike52 [ Sun Jul 05, 2009 9:33 pm ] |
Post subject: | Re: MinGW(GCC) Help |
Ya sure ![]() - in win xp to get to the cmd prompt, go to start, run, then type in cmd |
Author: | andrew. [ Sun Jul 05, 2009 11:19 pm ] |
Post subject: | RE:MinGW(GCC) Help |
Like Nike52 said, you have to open the command prompt (just click Run and type in 'cmd'), and use that to navigate to the folder with your source files. You navigate in the cmd prompt with the command 'cd PATH/TO/FOLDER' where PATH/TO/FOLDER would be your path to the folder. Once in the right folder, run g++ by typing in 'g++ yoursource.cpp -o myapp.exe'. yoursource.cpp is obviously your source and myapp.exe is the exe file that will be created. |
Author: | wassonator [ Mon Jul 06, 2009 6:49 pm ] |
Post subject: | Re: MinGW(GCC) Help |
thanks ill give that a try, thanks for being specific |
Author: | romantic_programmer [ Thu Jul 09, 2009 7:58 am ] |
Post subject: | RE:MinGW(GCC) Help |
I navigated to the folder with my source code but g++ is not recognized as an internal or external variable. |
Author: | rdrake [ Thu Jul 09, 2009 10:42 am ] |
Post subject: | RE:MinGW(GCC) Help |
You need to put it in your path. |
Author: | romantic_programmer [ Fri Jul 10, 2009 12:18 pm ] |
Post subject: | RE:MinGW(GCC) Help |
i have it in my path ;c:/minGW/bin and i look in the bin folder everything is there.... Does anyone know of any issues that xp might have with minGW because it works on my other laptop which runs Vista. |
Author: | rdrake [ Fri Jul 10, 2009 4:16 pm ] |
Post subject: | RE:MinGW(GCC) Help |
Doesn't Windows use back slashes? |
Author: | romantic_programmer [ Fri Jul 10, 2009 5:17 pm ] |
Post subject: | RE:MinGW(GCC) Help |
yea it does, but still didn't fix it. EDIT: Ok i got it working the problem was with the actual path command... i accidentally used lowercase c when the drive is clearly names with an upper case C. ![]() |
Author: | rdrake [ Fri Jul 10, 2009 9:07 pm ] |
Post subject: | RE:MinGW(GCC) Help |
Windows sees C:\ and c:\ as the same thing. Did you happen to close the command window after changing it then re-opening it? You have to do that for the path to take effect. Well no, but it's the easiest way to do it. |