Have you set the patth variable?
What does it say when you type echo %PATH%?
Printable View
Have you set the patth variable?
What does it say when you type echo %PATH%?
I just set the path variable using my computer. Also, my brother had me uninstall MinGW because it cannot detect some errors and made me download gnu gcc. Now, where should I save my files in order to compile them without having to set the PATH variable? I unzipped the given file in C:\gcc.
You WILL need to set a path variable somewhere in some way or another, unless you plan on recompiling your own version of gcc, and then putting the binaries in a place that works for your machine [ok, so it MAY be able to install into some existing path, with some experimenting and faffing about (technical term for "doing lots without achieving anything useful, if you are not aware of English colloqial terms), but that would be a REALLY silly thing to do, because it would be really hard to remove the compiler again, should you ever wish to do that (for example you want to try version 4.3.6 instead of 3.4.5].
What you can do is make up a batch file with the following content, and place that in some "easy to reach" place (e.g. c:\) and call it "gccsetup.bat" or some such:
(obviously, c:\whatever\gcc\bin should be wherever your gcc.exe is located).Code:path %path%;c:\whatever\gcc\bin
Then start a cmd (command prompt) and run c:\gccsetup before you start any compiler work. I use this method, and it works just fine. (except I don't use a batch file, I just type in "path %path%;e:\dev-cpp\bin" whenever I start a command prompt where I will use gcc).
--
Mats
I downloaded gcc-4.3.2.tar.bz2 to C:\gcc and then I unzipped the contents. Then, when I go into C:\gcc\gcc-4.3.2\gcc, I can't find any thing called gcc.exe!
I can't remember where I downloaded it from. It sounds like I'm being uncooperative, but i'm really trying. Could you tell me where to download it from?
Considering that I told you where to get Code::Blocks WITH gcc-mingw as one package in the third or fourth post here, I don't know why I should go looking all over the web to find another package just because your brother doesn't want you to do things in a more awkward way - why are you not asking your brother to find it for you? After all, he's the expert, right?
Alternatively, go back and download the complete Code::Blocks package and be done with it.
--
Mats
ok, see the problem is that my brother basically "controls" all the computers in house. So, I gotta go by what he says. I know, its annoying.
I'm only 11 and he's 19 and he is a CS major and I'm a 6th grader.
Did you get it from here?
http://www.delorie.com/djgpp/
Thats were I got my first gcc from.
Then I got the mingw stuff from here
http://www.mingw.org/
However I am currently downloading the codeblocks stuff now.
I might try using the IDE however I can and have managed quite well without
an IDE, I find they can 'get in the way', plus I have to learn how to operate the IDE
which could take some time.
http://www.codeblocks.org/downloads/5#windows
IF you don't want to set the path variable you could just copy gcc.exe to the windows system folder Your brother would never know ;)
Or even just copy it to the folder you are working in.
That is fine - but you then have to turn to his help when what advice I give doesn't work with what he wishes you to do - otherwise we will forever have a situation where I give some advice and the advice doesn't work for you. If he wishes to control what software goes on the machines, then he will also have to give the correct advice as how to get it on there - I believe the advice I've given is sound, and if he, for whatever reason thinks it is NOT, then he needs to help you get whatever you need to comply with HIS rules right.
--
Mats
I'm really sorry mats! Me and my brother had a misunderstanding as he is in college in Illinois and I live with my parents in Florida (no they're not that old) and we have talk on the phone. He misunderstood MinGW for WinZW and he thought it was some completely different compiler than gcc and was not related. So, we cleared the misunderstanding and I showed him that I was talking about the binary version of gcc not another compiler so now I downloaded CodeBlocks and everything is working great!