Home > OS >  Beginners gobject, wrote a small demo but compiled in the past, not undefined symbol
Beginners gobject, wrote a small demo but compiled in the past, not undefined symbol

Time:09-25

CodePudding user response:

This is to write their own makefile, should be quoted glib library, but under a lot of undefined symbol

CodePudding user response:

See libglib - 2.0. So in what position then add -l parameter specifies the base directory
$ls - l/usr/lib64/libglib - 2.0. So
Shine forth, on October 22, LRWXRWXRWX 1 root root 35/usr/lib64/libglib - 2.0. So - & gt; ./../lib64/libglib - 2.0. So the 0.2200.5

CodePudding user response:

Or simply use the PKG - config
GCC ` PKG - config PKG - config -- cflags - libs glib 2.0 ` -o program obj1. O obj2. O
  • Related