-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to link app manifest using clang build in MSYS2 #9603
Comments
Can you provide the cmake file? Generally, treat the .rc file as any other source code. |
attached: build using:
I get a different error in this little test, so not sure what is happening above for the exec format error.
this version of ld.exe has version 2.36.1 |
Your example works fine here (using an updated MSYS2 though), also using ninja |
Yes, I agree with lazka. Here is the output of make command:
|
Cool , but I only install MSYS2 the other day, so which version of MSYS2 do I need? |
There is no version of msys2, just like rolling Linux distributions (e.g. ArchLinux). Make sure you have installed msys2 with latest installer and update all installed packages with |
Ok, I ran "pacman -Syyu" and recreated my build output and I still get this warning:
but it does produce a binary and the binary has one .rsrc section containing my updated manifest so all good, thanks. |
Describe the issue
I'm trying to add the following *.rc file to my cmake library
Steps to Reproduce the Problem
add_library(shell OBJECT main .cpp )
Building RC object shell/CMakeFiles/shell.dir/manifest.rc.obj
but the linker is unhappy with itbash: line 1: C:/msys64/home/.../CMakeFiles/shell.dir/manifest.rc.obj: cannot execute binary file: Exec format error
even though the file is identical to the default-manifest.o that ships with gcc.Additional Context: Operating System, Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: