Creating a COFF object file from a resource script file on Linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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