Can dmd compile a favicon.ico to exe file ?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon May 22 11:23:51 UTC 2023


On 22/05/2023 11:18 PM, John Xu wrote:
> When I put resource.rc in sourceFiles, dub said, "Error: unrecognized 
> file extension rc"; When I put resource.res in sourceFiles, dub 
> said,"resource.res : fatal error LNK1136: Invalid or damaged file. 
> Error: linker exited with status 1136"

Yes, .res is the correct file extension, that is the output of the rc 
compiler.

That linker error would suggest that you need to use Microsoft's tool to 
compile the resource.rc file.

https://learn.microsoft.com/en-us/windows/win32/menurc/using-rc-the-rc-command-line-


More information about the Digitalmars-d-learn mailing list