Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Creating a COFF object file from a resource script file on Linux.
# This script needs mingw installed
# Convert a .rc resource script input file to a .res binary resource output file
x86_64-w64-mingw32-windres -J rc -i Resource.rc -O res -o Resource.res
# Convert a .res binary resource input file to a COFF object output file
x86_64-w64-mingw32-windres -J res -i Resource.res -O coff -o Resource.o
# The object file can be included during compilation like so:
# x86_64-w64-mingw32-g++ main.cpp --static -o main.exe Resource.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment