FYI's:
- Install directory: C:\CodeBlocks
- OS: Windows 8.1 x64
- Installed C::B with MinGW: Yes (So C:\CodeBlocks\MinGW is the compiler path)
- MinGW Tree: http://pastebin.com/hTuVvyc3
- Project is a new console application, C++, with just the basic default hello world program
- There is a lot of information and methods already tested, so please read everything.
Let's get to it:
Fresh install, nothing changed in the compiler settings, on build&run:
mingw32-g++.exe -Wall -fexceptions -g -c C:\CodeBlocks\Projects\CppLearning\main.cpp -o obj\Debug\main.o
mingw32-g++.exe: error: CreateProcess: No such file or directory
So I do about an hours worth of google searching and stock exchange searches and find nothing, except the wiki page on Vista and MinGW, and it looks to have my exact problem, so I follow the instructions until this step:
Still in the Compiler and Debugger dialogue go to "Search directories" -> "Compiler" and add:
C:\MinGW\include\
C:\MinGW\include\c++\MinGW-Version
C:\MinGW\include\c++\MinGW-Version\backward
C:\MinGW\include\c++\MinGW-Version\mingw32
C:\MinGW\lib\gcc\mingw32\MinGW-Version\include
So I start to delve into the path of these files but \include\c++ doesn't exits.... Stumped, I look for where ever iostream is located, which happens to be at:
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++
So I add this path to the search directory in the compiler settings, and out come more errors:
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++/iostream:39:28: fatal error: bits/c++config.h: No such file or directory
Do a quick search for c++config.h, and add this path to the search directories:
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\mingw32
Guess what? New error!
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++/cwchar:46:19: fatal error: wchar.h: No such file or directory
So now I added the path to wchar.h to the search directories(It had two paths, so I added both):
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1
C:\CodeBlocks\MinGW\include
New missing file, so we add it's path to(stddef.h):
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include
Boom! This is the dead end, here is a pastebin to the current error (It's large so it gets a pastebin):
http://pastebin.com/frEXi5SBUpdate 1: After doing a cross-check between my search directories and the wiki's list, I noticed I was missing a \backward path, so I searched for the folder and added it to my search directories:
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\backward
Same error as the pastebin.
Disclaimer: Sorry if I'm throwing a lot of useless information at you guys, I'm just trying to give you as much information as I know/have done. Please don't redirect me to other forum posts or stack exchanges, because I've probably read them. And sorry if this is on the wrong fourm/sub-forum.