Creating a COFF object file from a resource script file on WIndows.
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
|:: This batch script should be run from a VS developer prompt.|
|:: rc will create a binary .res file|
|:: cvtres will convert the .res file to a COFF object file|
|cvtres /MACHINE:x64 /OUT:Resource.o Resource.res|
|:: The object file can be included during compilation like so:|
|:: cl.exe main.cpp /link /OUT:main.exe /SUBSYSTEM:CONSOLE /MACHINE:x64 Resource.o|