Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CFLAGS and other irrelevant details were omitted
- # Preparations
- gcc -c -o main.o main.c
- glib-compile-resources --target=foo-resources.c --generate-source --c-name foo foo.gresource.xml
- gcc -c -o foo-resources.o foo-resources.c
- # Works (can query the resources in the executable with "gresource" CLI tool and can access those in myprogram's code)
- gcc -o myprogram main.o foo-resources.o
- # Doesn't work (cannot see the resources in the executable)
- ar rcs libfoo.a foo-resources.o
- gcc -o myprogram main.o libfoo.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement