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
Still in the Compiler and Debugger dialogue go to "Search directories" -> "Compiler" and add:QuoteC:\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
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++
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
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\mingw32
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++/cwchar:46:19: fatal error: wchar.h: No such file or directory
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\tr1
C:\CodeBlocks\MinGW\include
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include
C:\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\backward
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
-------------- 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))
Running project pre-build steps
CMD /C where where
C:\Windows\System32\where.exe
CMD /C REM TARGET_COMPILER_DIR
CMD /C echo C:\Apps\TDM-GCC-64\
C:\Apps\TDM-GCC-64\
CMD /C REM TARGET_CC
CMD /C where x86_64-w64-mingw32-gcc.exe
C:\Apps\TDM-GCC-64\bin\x86_64-w64-mingw32-gcc.exe
CMD /C REM TARGET_CPP
CMD /C where x86_64-w64-mingw32-g++.exe
C:\Apps\TDM-GCC-64\bin\x86_64-w64-mingw32-g++.exe
Running project pre-build steps
CMD /C where where
C:\Windows\System32\where.exe
CMD /C REM TARGET_COMPILER_DIR
CMD /C echo C:\Program Files\CodeBlocks\MinGW\
C:\Program Files\CodeBlocks\MinGW\
CMD /C REM TARGET_CC
CMD /C where mingw32-gcc.exe
C:\Program Files\CodeBlocks\MinGW\bin\mingw32-gcc.exe
CMD /C REM TARGET_CPP
CMD /C where mingw32-g++.exe
C:\Program Files\CodeBlocks\MinGW\bin\mingw32-g++.exe
As another side note, I do have MinGW pathed properly in Window's environmental variables.Can you remove it from the env vars?
Running project pre-build steps
CMD /C where where
C:\Windows\System32\where.exe
CMD /C REM TARGET_COMPILER_DIR
CMD /C echo C:\CodeBlocks\MinGW\
C:\CodeBlocks\MinGW\
CMD /C REM TARGET_CC
CMD /C where mingw32-gcc.exe
C:\CodeBlocks\MinGW\bin\mingw32-gcc.exe
CMD /C REM TARGET_CPP
CMD /C where mingw32-g++.exe
C:\CodeBlocks\MinGW\bin\mingw32-g++.exe
-------------- Build: default in testgcc win (compiler: GNU GCC Compiler)---------------
Target is up to date.
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-------------- Run: default in testgcc win (compiler: GNU GCC Compiler)---------------
Running project pre-build steps
CMD /C where where
C:\Windows\System32\where.exe
CMD /C REM TARGET_COMPILER_DIR
CMD /C echo C:\CodeBlocks\MinGW\
C:\CodeBlocks\MinGW\
CMD /C REM TARGET_CC
CMD /C where mingw32-gcc.exe
C:\CodeBlocks\MinGW\bin\mingw32-gcc.exe
CMD /C REM TARGET_CPP
CMD /C where mingw32-g++.exe
C:\CodeBlocks\MinGW\bin\mingw32-g++.exe
-------------- Build: default in testgcc win (compiler: GNU GCC Compiler)---------------
Target is up to date.
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-------------- 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))
C:\CodeBlocks\MinGW\bin\mingw32-g++.exe -v
CD /d C:\CodeBlocks\Projects\CppLearning
C:\CodeBlocks\MinGW\bin\mingw32-g++.exe -Wall -fexceptions -g -c C:\CodeBlocks\Projects\CppLearning\main.cpp -o obj\Debug\main.o
CD /d C:\CodeBlocks\Projects\CppLearning
C:\CodeBlocks\MinGW\bin\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
Good old,Quotemingw32-g++.exe: error: CreateProcess: No such file or directory