Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Cmd getting gcc out of an unknown path

08 Jan 2012   #1

64 bit win7 home
Cmd getting gcc out of an unknown path


I have mingw32 with gcc 4.6 installed, but when i try to run it trough the console, the console picks up another gcc which is not the one i want (its a gcc 2.9 executable). The problem is that i dont know where to find this gcc.exe the cmd is going for. This is really anoying since when i want to build something using a makefile, the make file tries to reach for gcc and the gcc it gets cant even find the include paths, and is very old.

Before you ask, yes, im sure the version i installed is the version 4.6, and im sure my PATH variable is correct.

Is there any command i can use to find the path of the file the cmd is using?

thank you in advance.

My System SpecsSystem Spec
09 Jan 2012   #2

Windows 7 Pro x64

Well, you can just check all the path variable locations and search for gcc.exe, it's easy, simple and fast
My System SpecsSystem Spec

 Cmd getting gcc out of an unknown path

Thread Tools

Similar help and support threads
Thread Forum
Open a new window with "full path" instead of Search Results\"Path"
How can I make it such that in Search Results, when I open a folder in a new window (by right-clicking a file), I will be directed to a window with the "full path" displayed in the address bar, instead of Search Results\"Path" or Search Results>"Path"? Edit: "Right-click -> open file location"...
General Discussion
Windows Recovery disk shows operating system: Unknown on (Unknown)
I've been trolling the forums here for a while. Lots of great info but now I actually have an issue where I need some assistance. :D When I was booting one day last week I got a nasty BSOD when Windows was trying to load. Then on the next reboot Windows 7 said it couldn't load and needed to do...
BSOD Help and Support
Which path for me?
Hello SevenForums, I was wondering if you would kindly help me. My name is Darren and I'm from the UK. I've just turned 17 and I am due to start the Zenos IT academy where I will be working towards a diploma to become a Microsoft Certified System Administrator along with an NVQ level 3. I'm...
Chillout Room
Help!! Took the wrong path
Well,in an effort to invoke advanced sharing for my x86 Program Files,it seems I have somehow corrupted the path.When I choose Properties > Sharing tab,the Network path is now \\Bev-PC\everyone,where I believe it should be \\Bev-PC\Program Files(x86).My intent was to share this folder with...
Network & Sharing
no path in bcdedit
I have Win 7 64 bit build 7100 installed. While checking on a problem, I opened BCD and noticed that there is no path line. Is this a problem? If so, how do I repair it? Screen captures of the BCD and disk manager are attached.
General Discussion
Upgrade path
Report: PC makers to provide free Vista-to Win-7 upgrades starting July 1 | All about Microsoft |

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:03.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App