MinGW is trolling me (not anymore) [solved]

Programming, for all ages and all languages.
Post Reply
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

MinGW is trolling me (not anymore) [solved]

Post 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?
Last edited by Techel on Wed Feb 03, 2016 4:05 pm, edited 1 time in total.
FallenAvatar
Member
Member
Posts: 283
Joined: Mon Jan 03, 2011 6:58 pm

Re: MinGW is trolling me

Post 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
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

Re: MinGW is trolling me

Post 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:
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

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

Post 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.
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

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

Post 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:
Post Reply