User forums > Help
Error windress can't popen
mario_mc:
I have different problem which i hasn't found on the forums or guides.
after installing code :: block with MinGW and compile wxWidegets2.9.5 using:
SHARED=1
MONOLITHIC=1
UNICODE=1
when I create new project following by instruction
everything's fine but when i run and build project it appear a error:
windres.exe: can't popen `gcc -E -xc -DRC_INVOKED -ID:\wxWidgets-2.9.5\include -ID:\wxWidgets-2.9.5\lib\gcc_dll\mswu D:MyProject\test\resource.rc': No such file or directory
I have no idea what is causes problem please help
Reply
stahta01:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
FYI: We here have no idea why you will NOT post the information requested in the link posted twice for you.
Posting a full re-build log would likely help us to help you.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Tim S.
PinkPanther:
Hello, All ( and exclusively stahta01).
I am running Code::Blocks ver. 12.11 Build: Nov 25 2012, 09:32:38 - wx2.8.12 (Windows, unicode - 32bit)
on WindowsXP Pro 2002 SP3. The compiler I use is MinGW ver. 4.7.1
(http://garr.dl.sourceforge.net/project/codeblocks.berlios/codeblocks-12.11mingw-setup_user.exe)
When I build new project ( File -> New -> Project -> Win32 GUI project -> Dialog based -> ... -> Build)
I see next
"-------------- Build: Debug in Dialog (compiler: GNU GCC Compiler)---------------
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
windres.exe: can't popen `gcc -E -xc -DRC_INVOKED D:\pjx\CB\Dialog\resource.rc': No such file or directory
Process terminated with status 1 (0 minutes, 6 seconds)
1 errors, 0 warnings (0 minutes, 6 seconds)
"
No additions, no deletions in any project files.
Frame based Win32 GUI projects built successfully.
With best wishes...
stahta01:
Works for me.
--- Code: ----------------- Build: Debug in TestWinGUI (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -c V:\SourceCode\CBProjects\TestProjects\TestWinGUI\main.cpp -o obj\Debug\main.o
windres.exe -J rc -O coff -i V:\SOURCE~1\CBPROJ~1\TESTPR~1\TESTWI~2\resource.rc -o obj\Debug\resource.res
mingw32-g++.exe -o bin\Debug\TestWinGUI.exe obj\Debug\main.o obj\Debug\resource.res -lgdi32 -luser32 -lkernel32 -lcomctl32
Output size is 32.63 KB
--- End code ---
Your MinGW Compiler installation is likely missing "gcc.exe".
I am testing on Windows 7 32-bit and CB 12.11 using MinGW that came with CB 12.11.
What I get on Windows 7 if gcc.exe does NOT exist.
--- Code: ---mingw32-g++.exe -Wall -g -c V:\SourceCode\CBProjects\TestProjects\TestWinGUI\main.cpp -o obj\Debug\main.o
windres.exe -J rc -O coff -i V:\SOURCE~1\CBPROJ~1\TESTPR~1\TESTWI~2\resource.rc -o obj\Debug\resource.res
'gcc' is not recognized as an internal or external command,
operable program or batch file.
windres.exe: preprocessing failed.
--- End code ---
For anymore help from me; I need your CB Tool chain setting value for Compiler Installation Directory.
My guess is it is NOT using the correct MinGW GCC.
Tim S.
PinkPanther:
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?
Navigation
[0] Message Index
[#] Next page
Go to full version