windres

Syntax error when running Winres, trying to set executable icon

一笑奈何 提交于 2020-12-14 23:44:13
问题 When running ([filename] is just a placeholder]) windres -v -i [filename].rc -o [filename].o in the terminal I get the following messages: gcc -E -xc -DRC_INVOKED [filename].rc' Using popen to read preprocessor output windres.exe: [filename].rc:1: syntax error I don't understand why there is a syntax error. I am trying to set an icon for an executable like this https://wiki.haskell.org/Setting_an_executable_icon , but don't get it working. What is the solution to this? 来源: https:/

Syntax error when running Winres, trying to set executable icon

≯℡__Kan透↙ 提交于 2020-12-14 23:40:08
问题 When running ([filename] is just a placeholder]) windres -v -i [filename].rc -o [filename].o in the terminal I get the following messages: gcc -E -xc -DRC_INVOKED [filename].rc' Using popen to read preprocessor output windres.exe: [filename].rc:1: syntax error I don't understand why there is a syntax error. I am trying to set an icon for an executable like this https://wiki.haskell.org/Setting_an_executable_icon , but don't get it working. What is the solution to this? 来源: https:/

TDM-GCC w64 script to change windres for 32bit?

时间秒杀一切 提交于 2019-12-01 20:12:54
Trying to get the TDM-GCC(4.7.1) running on XP SP3 - I just need a c++ 32bit build for now. It seems that windres is not in the right format, my .rc file is failing the build: x86_64-w64-mingw32-g++.exe -Wall -m32 -s -D_M_X86 -DBUILD_DLL -DNDEBUG -c C:\SynthEditSDK\TD_SV\SV.cpp -o obj\Release\TD_SV\SV.o windres.exe -J rc -O coff -i C:\SYNTHE~1\TD_SV\TD_SV.rc -o obj\Release\TD_SV\TD_SV.res x86_64-w64-mingw32-g++.exe -shared -Wl,--output-def=bin\Release\libTD_SV -Wl,--out-implib=bin\Release\libTD_SV -Wl,--dll obj\Release\se_sdk3\mp_sdk_audio.o obj\Release\se_sdk3\mp_sdk_common.o obj\Release\TD

TDM-GCC w64 script to change windres for 32bit?

不羁岁月 提交于 2019-12-01 20:10:28
问题 Trying to get the TDM-GCC(4.7.1) running on XP SP3 - I just need a c++ 32bit build for now. It seems that windres is not in the right format, my .rc file is failing the build: x86_64-w64-mingw32-g++.exe -Wall -m32 -s -D_M_X86 -DBUILD_DLL -DNDEBUG -c C:\SynthEditSDK\TD_SV\SV.cpp -o obj\Release\TD_SV\SV.o windres.exe -J rc -O coff -i C:\SYNTHE~1\TD_SV\TD_SV.rc -o obj\Release\TD_SV\TD_SV.res x86_64-w64-mingw32-g++.exe -shared -Wl,--output-def=bin\Release\libTD_SV -Wl,--out-implib=bin\Release