How to compile C and Gtk+ with GCC on Linux?

前端 未结 5 1633
小蘑菇
小蘑菇 2020-12-31 20:12

I\'ve searched and searched but I\'m not getting the information I really want. Can someone please explain, as completely and fundamentally as possible, how Gtk+ code is com

5条回答
  •  遥遥无期
    2020-12-31 20:40

    From the Gtk Docs Getting Started page:

    gcc `pkg-config --cflags gtk+-3.0` -o example example.c `pkg-config --libs gtk+-3.0`
    

    Also check Nikos C.'s Aswer to learn more about pkg-config.

提交回复
热议问题