OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 1:37 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: MinGW is trolling me (not anymore) [solved]
PostPosted: Wed Feb 03, 2016 3:46 pm 
Offline
Member
Member

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

Top
 Profile  
 
 Post subject: Re: MinGW is trolling me
PostPosted: Wed Feb 03, 2016 3:52 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
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


Top
 Profile  
 
 Post subject: Re: MinGW is trolling me
PostPosted: Wed Feb 03, 2016 4:04 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: MinGW is trolling me (not anymore) [solved]
PostPosted: Wed Feb 03, 2016 4:22 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
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


Top
 Profile  
 
 Post subject: Re: MinGW is trolling me (not anymore) [solved]
PostPosted: Wed Feb 03, 2016 4:33 pm 
Offline
Member
Member

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group