https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108866
Bug ID: 108866 Summary: Allow to pass Windows resource file (.rc) as input to gcc Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: pali at kernel dot org Target Milestone: --- Currently it is possible to pass source C file, source assembler file, object file, library to gcc as an input argument and gcc calls needed tools to compile and link all input files to one output binary. But gcc currently is not able to recognize Windows resource text file .rc when it is passed as input argument. See: $ x86_64-w64-mingw32-gcc test-rsrc.rc /usr/bin/x86_64-w64-mingw32-ld:test-rsrc.rc: file format not recognized; treating as linker script /usr/bin/x86_64-w64-mingw32-ld:test-rsrc.rc:1: syntax error collect2: error: ld returned 1 exit status Currently resource file first needs to be passed to windres compiler and then output object file from windres can be specified as input argument to gcc: $ x86_64-w64-mingw32-windres --input-format=rc --output-format=coff --input=test-rsrc.rc --output=test-rsrc.o It would be nice if gcc is able to call windres automatically for resource text file, like for assembler source, for generating object file.