User forums > Help
MinGW Compile Errors
Pinyateh:
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:
--- Quote ---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
--- End quote ---
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:
--- Quote ---Still in the Compiler and Debugger dialogue go to "Search directories" -> "Compiler" and add:
--- Quote ---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
--- End quote ---
--- End quote ---
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:
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++
--- End quote ---
So I add this path to the search directory in the compiler settings, and out come more errors:
--- Quote ---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
--- End quote ---
Do a quick search for c++config.h, and add this path to the search directories:
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\mingw32
--- End quote ---
Guess what? New error!
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++/cwchar:46:19: fatal error: wchar.h: No such file or directory
--- End quote ---
So now I added the path to wchar.h to the search directories(It had two paths, so I added both):
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1
C:\CodeBlocks\MinGW\include
--- End quote ---
New missing file, so we add it's path to(stddef.h):
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include
--- End quote ---
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/frEXi5SB
Update 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:
--- Quote ---C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\backward
--- End quote ---
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.
oBFusCATed:
I don't know where have you read that about these paths, but that place is totally wrong.
What is the full build log if you remove them?
What is the setting for the root of the compiler in the toolchain executable's tab in the compiler settings?
Does your compiler work if you try to compile something from the command line?
Pinyateh:
Removing all of the search directories, this is the error:
--- Quote ---C:\CodeBlocks\Projects\CppLearning\main.cpp:1:20: error: no include path in which to search for iostream
C:\CodeBlocks\Projects\CppLearning\main.cpp: In function 'int main()':
C:\CodeBlocks\Projects\CppLearning\main.cpp:7:5: error: 'cout' was not declared in this scope
C:\CodeBlocks\Projects\CppLearning\main.cpp:7:31: error: 'endl' was not declared in this scope
--- End quote ---
Keep in mind that the additional path is still there, if I remove it, we go back to the default error.
oBFusCATed:
Remove any paths you've entered and post the full log from a full rebuild, please!
Pinyateh:
Removed all search directories, removed the additional paths in toolchain exe's.
On rebuild, this is the build log:
--- Quote ----------------- Clean: Debug in CppLearning (compiler: GNU GCC Compiler)---------------
Cleaned "CppLearning - Debug"
-------------- Build: Debug in CppLearning (compiler: GNU GCC Compiler)---------------
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
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End quote ---
(Side question I've read about enabling full build log, but when I go to look for said setting, its not there? Is what I posted indeed a full build log?)
Navigation
[0] Message Index
[#] Next page
Go to full version