public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108866] New: Allow to pass Windows resource file (.rc) as input to gcc
@ 2023-02-20 21:17 pali at kernel dot org
  2023-02-20 21:24 ` [Bug target/108866] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pali at kernel dot org @ 2023-02-20 21:17 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-24 16:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-20 21:17 [Bug c/108866] New: Allow to pass Windows resource file (.rc) as input to gcc pali at kernel dot org
2023-02-20 21:24 ` [Bug target/108866] " pinskia at gcc dot gnu.org
2023-02-20 21:24 ` pinskia at gcc dot gnu.org
2024-03-13 21:46 ` pali at kernel dot org
2024-03-13 22:06 ` pinskia at gcc dot gnu.org
2024-03-14 13:55 ` amonakov at gcc dot gnu.org
2024-03-14 20:19 ` pali at kernel dot org
2024-03-14 20:23 ` pinskia at gcc dot gnu.org
2024-03-15 15:55 ` peter0x44 at disroot dot org
2024-03-15 17:27 ` pali at kernel dot org
2024-03-24 16:07 ` pali at kernel dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).