User forums > Help
Windows Path Problem - Causing Issues?
arew264:
I have been using CodeBlocks for a while on Windows, but I am having a problem (Windows, not CodeBlocks).
I'm trying to create a GUI project (been dreading this for a while), and I'm trying to to compile wxWidgets for use.
I'm following this: http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide
The problem is that when I try to compile it with mingw32-make -f makefile.gcc, I get the error that gcc is an unrecognized command (Windows has this huge error mentioning bat files and whatnot).
I forget on what, but I had this problem before with a project that had one makefile building many makefiles. It would give an error there that mingw32-make was not a recognized command.
What the heck is going on here? I added "C:\MinGW\bin\" to the path variable in the environment variables configuration menu, and I can use the MinGW executables as commands, but other scripts can't seem to call them.
I must be missing something here.
maxx.t:
What happens if you open a cmd shell, then set PATH=c:\MINGW\bin and then retry the make?
arew264:
When I do that, everything works.
I assume it will go back to the big long monstrosity it normally is when I reboot?
TDragon:
Yes, it would.
The problem may have been the trailing backslash, or a malformed PATH value. Make sure every individual path in your Windows PATH environment variable is separated by a semicolon ';', but that the list does not begin or end with a semicolon, and make sure that the entry for MinGW is "C:\MinGW\bin" (no trailing '\').
P.S. These instructions are for XP or 2000 where you set the PATH value from a dialog box; if you're using 95/98/ME where you set it in autoexec.bat, different procedure.
raph:
Did you log off/restart after you added gcc to PATH?
Navigation
[0] Message Index
[#] Next page
Go to full version