Cmd getting gcc out of an unknown path

shiroaisu

New member
Local time
10:44 AM
Messages
1
Hello

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 Computer My Computer

At a glance

64 bit win7 home
OS
64 bit win7 home
Well, you can just check all the path variable locations and search for gcc.exe, it's easy, simple and fast :)
 

My Computer My Computer

At a glance

Windows 7 Pro x64Intel T32003 GBIntel X3100
Computer Manufacturer/Model Number
Asus X51L
OS
Windows 7 Pro x64
CPU
Intel T3200
Memory
3 GB
Graphics Card(s)
Intel X3100
Hard Drives
Crucial C300
Back
Top