User forums > Help

MinGW Compile Errors

<< < (2/5) > >>

stahta01:
Please rename the C:\MinGW folder on your harddrive to something like C:\MinGW.old.

Please post the toolchain path you have set in Code::Blocks. I am guessing it is C:\CodeBlocks\MinGW please confirm that is what it is currently for the CB "GNU GCC Compiler".

Tim S.


stahta01:
I am attaching a simple CB Project that display the toolchain location and checks for the C and C++ compilers.

The output I get when I run it with my very modified CB gcc settings.


--- Code: ---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

--- End code ---

I am now going to set my CB gcc compiler to the normal settings and see what is displayed.


--- Code: ---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

--- End code ---

Tim S.

Pinyateh:
Thanks for joining the help, the path in my Tool Exe's is in fact C:\CodeBlocks\MinGW and it is for GNU GCC Compiler. I deleted the C:\MinGW long before this day, so it doesn't exist. As another side note, I do have MinGW pathed properly in Window's environmental variables.

Jenna:
The first thing I would do is placing the project in another directory (somewhere below one of your user-folders),
Win8 sometimes behaves very strange if you try to use other folders for writing as normal user, even if you run a program "as administrator",

Pinyateh:
So I have multiple projects in 3 different locations now, the first is at C:\CodeBlocks\Projects\, the second is at C:\Users\myuserid*\CBPRojects\ and the third is where my actual data partition is, G:\Users\myuserid*\Documents\CodeBlocks\. All of these projects produce the same error as before.

* My user ID does have a space in it, but when I get the compiler log, the path has quotes around it.

EDIT: My responses will be more sparse today but I am still here, thank you all for the help.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version