Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: bobsadino on January 23, 2018, 04:15:37 pm
-
Execution of 'windres.exe -J rc -O res -i resource.rc -o obj\Debug\resource.res' failed
I have checked Toolchain executable, resource files, etc
Anyone know the solution or work around like how i can get windres log so i can know how to fix this stupid shit
im using windows 7
Codeblocks 16.01
-
What compiler? Name, version, and what site built it?
Tim S.
-
Microsoft Visual Studio 2010
-
Post a build log!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Why are you using GCC command to compile resource files?
Instead of using "rc.exe" command as I am guessing is normal?
Tim S.
-
Because Microsoft Visual studio 2010 Compiler is bad
https://msdn.microsoft.com/en-us/library/7dz62kfh.aspx
see https://stackoverflow.com/questions/12267158/failure-during-conversion-to-coff-file-invalid-or-corrupt
i dont know, i try to add flag on linker /incremental:NO but still it doesnt work
i will get update tomorrow but i can't wait to see my app working today
-
-------------- Build: Release in miner (compiler: Microsoft Visual C++ 2010)---------------
cl.exe /nologo /W3 /Ox /DNDEBUG /I"C:\Program Files\Microsoft SDKs\Windows\v7.0A\include" /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /IF:\ /c browser.cc /Foobj\Release\browser.obj
browser.cc
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
browser.cc(174) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy'
browser.cc(199) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy'
windres.exe -J rc -O coff -i resource.rc -o obj\Release\resource.res
Execution of 'windres.exe -J rc -O coff -i resource.rc -o obj\Release\resource.res' in 'f:\miner' failed.
im going to sleep. good night bro :(
im successfully compile the resource but without windres there is a tool called reswizard