User forums > Help
Error windress can't popen
stahta01:
--- Quote from: PinkPanther on August 12, 2013, 06:55:45 pm ---Compiler settings -> Global compiler settings -> Toolchain executables -> Compiler's installation directory = D:\CodeBlocks\MinGW
If "D:\CodeBlocks\MinGW" is NOT correct MinGW GCC then what is more correct?
--- End quote ---
Does the file D:\CodeBlocks\MinGW\bin\gcc.exe exist?
Edit: If it does exist what does the below in a cmd.exe window give
--- Code: ---cd /d D:\CodeBlocks\MinGW\bin
gcc.exe -v
--- End code ---
Tim S.
PinkPanther:
Definitely YES.
stahta01:
What does the below in a cmd.exe window give
--- Code: ---cd /d D:\CodeBlocks\MinGW\bin
gcc.exe --version
--- End code ---
Tim S.
PinkPanther:
Of course
"D:\CodeBlocks\MinGW\bin>gcc --version
gcc.EXE (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
"
stahta01:
Try this command and see if it works on the CMD.exe
--- Code: ---gcc -E -xc -DRC_INVOKED D:\pjx\CB\Dialog\resource.rc
--- End code ---
You will likely need to be in the "D:\CodeBlocks\MinGW\bin" folder or add it to your system path.
If it works or fails try this below commands
--- Code: ---SET PATH=D:\CodeBlocks\MinGW\bin;%PATH%
cd /d D:\pjx\CB\Dialog
mingw32-g++.exe -Wall -g -c D:\pjx\CB\Dialog\main.cpp -o obj\Debug\main.o
windres.exe -J rc -O coff -i D:\pjx\CB\Dialog\resource.rc -o obj\Debug\resource.res
--- End code ---
If the above works, it implies a problem in Code::Blocks.
If it fails, it implies a Compiler related issue. Compiler Installation or conflict issue being most likely.
Edit: If it fails, you should verify D:\pjx\CB\Dialog\resource.rc exists before thinking it is a compiler issue.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version