User forums > Help
Error windress can't popen
PinkPanther:
"gcc -E -xc -DRC_INVOKED D:\pjx\CB\Dialog\resource.rc" returns many lines, no errors.
After "set path" and "cd d:\..."
"mingw32-g++.exe -Wall -g -c D:\pjx\CB\Dialog\main.cpp -o obj\Debug\main.o" returns no message, obj\Debug\main.o file appears.
"windres.exe -J rc -O coff -i D:\pjx\CB\Dialog\resource.rc -o obj\Debug\resource.res" returns no message, obj\Debug\resource.res file appears.
What is my next step?
stahta01:
--- Quote from: PinkPanther on August 12, 2013, 07:49:01 pm ---"gcc -E -xc -DRC_INVOKED D:\pjx\CB\Dialog\resource.rc" returns many lines, no errors.
After "set path" and "cd d:\..."
"mingw32-g++.exe -Wall -g -c D:\pjx\CB\Dialog\main.cpp -o obj\Debug\main.o" returns no message, obj\Debug\main.o file appears.
"windres.exe -J rc -O coff -i D:\pjx\CB\Dialog\resource.rc -o obj\Debug\resource.res" returns no message, obj\Debug\resource.res file appears.
What is my next step?
--- End quote ---
I really have no idea; I might try a prior version of Code::Blocks (8.?? or 10.??) or a current nightly and see if the problem still exists in CB.
I am guessing a CB and Windows XP related bug.
Tim S.
stahta01:
I have a possible work around; but, it may or may not work.
Changing adv compiler options did NOT work for me.
But, changing tool chain exe for resource compiler did seem to work it was "windres.exe" I changed it to "windres.exe --use-temp-file"
This might fix it under windows XP; but, it is just a guess.
I am hoping that it is a popen and windows XP caused CB related bug. The option "--use-temp-file" stops the use of popen in the windres call.
Tim S.
PinkPanther:
Yes, adjustment "windres.exe" to "windres.exe --use-temp-file" fix it.
Thank you very much.
PS: But it's so regretable...
robertkendrick:
Hi there.
Nice product.
I had this same problem as above with windres (xxx.rc no such file or directory). Using 12.11 and combined MinGW.
After trying moving MinGW (for no spaces) and using GCC command in advanced build for the individual rc file (without success) I found that editing the toolchain in settings->compiler from:
windress
to
windress -v
also appears to fix the problem (and still uses popen ??).
I HAVE NO IDEA WHY -- but thought it may help to track down the bug.
regards
Navigation
[0] Message Index
[*] Previous page
Go to full version