glibconfig.h no such file or directory

后端 未结 1 1557
孤街浪徒
孤街浪徒 2021-02-01 01:32

I just installed glib in Raspbian(Debian version). I want to read a config file using glib. I am trying to write a C application in Codeblocks and I use the header



        
1条回答
  •  悲&欢浪女
    2021-02-01 02:33

    Use pkg-config.

    gcc `pkg-config --cflags glib-2.0` foo.c `pkg-config --libs glib-2.0`
    

    0 讨论(0)
提交回复
热议问题