Page 1 of 1

MinGW is trolling me (not anymore) [solved]

Posted: Wed Feb 03, 2016 3:46 pm
by Techel
This is another 'CreateProcess: file not found'-gcc-error-question. According to the -v switch it can't open cc1plus. Things I tried:
-> add C:\bin\mingw\libexec\gcc\mingw32\4.8.1 to %path% (my mingw inst-path is C:\bin\mingw)
-> add C:\bin\mingw\bin to %path%
-> copy cc1plus.exe to bin\, the same directory as gcc
-> create junction from C:\mingw to C:\bin\mingw (just in case...)
(I use Windows 7)

But the error still persists. Yesterday I installed mingw on windows xp, it worked just fine!
Am I missing something?

Re: MinGW is trolling me

Posted: Wed Feb 03, 2016 3:52 pm
by FallenAvatar
Roflo wrote:Am I missing something?
Yep, you are missing any information we need to be able to help you. What is/are the exact command(s) you tried? What is the EXACT output of said commands? What are your environment variables? What version of MinGW are you using? What version of Windows 7? (Home, Pro, 32-bit or 64-bit)

- Monk

Re: MinGW is trolling me

Posted: Wed Feb 03, 2016 4:04 pm
by Techel
I discovered a environment variable called 'gcc_exec_prefix', probably from a old mingw installation a time ago. Setting this to the right location solves my problem. :shock:

Re: MinGW is trolling me (not anymore) [solved]

Posted: Wed Feb 03, 2016 4:22 pm
by Nutterts
Roflo wrote:Yesterday I installed mingw on windows xp, it worked just fine! Am I missing something?
Permissions come to mind. Have you tried running it from an administrator prompt or checked the folder access rights? Under XP by default your running with administrator privileges, under 7 your not.

Re: MinGW is trolling me (not anymore) [solved]

Posted: Wed Feb 03, 2016 4:33 pm
by Techel
Yes I was running it as admin. I'm currently make a complete new mingw installation, the old one probably messed things up.
edit: runs perfectly now :) Nice when things work.
edit2: AHHH why the hell did I delete that f*** junction :shock: