User forums > Help
MinGW Compile Errors
Pinyateh:
Removing the path, changes nothing, we still get the initial error from the beginning. Here's the build log from Tim's project:
--- Quote ---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)---------------
--- End quote ---
stahta01:
Please post the build log that contains the error.
Please do a re-build (of the project that has the error) to create the build log.
Edit2: Do NOT do build and run!
Tim S.
Pinyateh:
Actually what I posted is the build log (for your project). There is no error. I built it again but this time I didn't run it, and got the same thing:
--- Quote ---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))
--- End quote ---
As for the original project, with default settings, this is the error of the build:
--- Quote ----------------- 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 ---
Edit: I think I misunderstood what you were saying, but still provided what you were asking for Stah, the top build log it of your project, and the bottom build is of a default hello world project.
stahta01:
This thread started with you saying you had a error.
Try running this from the command line
--- Code: ---C:\CodeBlocks\MinGW\bin\mingw32-g++.exe -v
--- End code ---
Edit: If that works try the below from the command line.
--- Code: ---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
--- End code ---
Tim S.
Pinyateh:
I do have an error, that's why I added the edit saying I misunderstood what you were asking for. Anyway here is the output log from the command you told me to input, I ran it from my desktop, if that's a problem I can run it again.
http://surrr.net:8080/output.png
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version