Skip to content

Instantly share code, notes, and snippets.

@filter-eq
Last active September 2, 2021 02:41
Show Gist options
  • Save filter-eq/a57369e0b27c3b7e51d4f4b5050400f0 to your computer and use it in GitHub Desktop.
Save filter-eq/a57369e0b27c3b7e51d4f4b5050400f0 to your computer and use it in GitHub Desktop.
gtk4 compile error
cc $(pkg-config --cflags gtk4) -o example-0 example-0.c $(pkg-config --libs gtk4)
# error
/usr/bin/ld: /opt/gtk/lib/x86_64-linux-gnu/libgtk-4.so: undefined reference to `pango_fc_font_get_languages'
collect2: error: ld returned 1 exit status
# link libpangofc
cc $(pkg-config --cflags gtk4 pangofc) -o example-0 example-0.c $( pkg-config --libs gtk4 pangofc)
# compile is completed. but, cannot execute file.
# see,
# https://gist.github.com/filter-eq/e1e6a4b4a26ca1c6725196001200b77d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment