gcc: fatal error: no input files when compiling and linking a resource file with Code::Blocks

2k views Asked by At

I grow tired from badly-made non-working or unnecessarily obfuscated user-hostile tools and programs.

I am using Code::Blocks set to compile with Cygwin GCC (Compiler toolchain directory: C:\msys64\usr), I add a .rc file within my project and then when I compile I get this:

=== Build: Debug in Test (compiler: GNU GCC Compiler) ===

UsersAl3Desktopresource.rc || No such file or directory

warning: '-x c' after last input file has no effect

error: no input files

Why is it removing the backslashes from the resource file path? Also as you can see from this picture, the file path of the resource file does not contain any spaces or weird characters, neither does the windres.exe, which is located in C:\msys64\usr\bin


What causes this issue and how do I fix it?

0

There are 0 answers