resloved / xtext

📝 — Display Text w/ X11
MIT License
8 stars 2 forks source link

Bug in makefile causing linking errors #5

Open tpapastylianou opened 10 months ago

tpapastylianou commented 10 months ago

There is a bug in the makefile, causing errors (at least with gcc)

The line

gcc -o xtext `pkg-config --cflags --libs pangocairo x11 xfixes`  xtext.c 

should be

gcc -o xtext  xtext.c `pkg-config --cflags --libs pangocairo x11 xfixes`

Otherwise the linker does not resolve symbols properly. (see: https://stackoverflow.com/q/45135/4183191)