Glibインスタンス学習(0)開始
Gl 1:ibの概要
Glibは最下位のライブラリで、彼女は一連のデータ型とこれらのデータに関する操作を提供しています.これらのデータ型には、次のようなものが含まれます.
Memory chunks
Doubly-linked lists
Singly-linked lists
Hash tables
Strings (which can grow dynamically)
String chunks (groups of strings)
Arrays (which can grow in size as elements are added)
Balanced binary trees
N-ary trees
Quarks (a two-way association of a string and a unique integer identifier)
Keyed data lists (lists of data elements accessible by a string or integer id)
Relations and tuples (tables of data which can be indexed on any number of fields)
Caches
2:「ハローワールド」から
Glibは最下位のライブラリで、彼女は一連のデータ型とこれらのデータに関する操作を提供しています.これらのデータ型には、次のようなものが含まれます.
Memory chunks
Doubly-linked lists
Singly-linked lists
Hash tables
Strings (which can grow dynamically)
String chunks (groups of strings)
Arrays (which can grow in size as elements are added)
Balanced binary trees
N-ary trees
Quarks (a two-way association of a string and a unique integer identifier)
Keyed data lists (lists of data elements accessible by a string or integer id)
Relations and tuples (tables of data which can be indexed on any number of fields)
Caches
2:「ハローワールド」から
- #include <stdio.h>
- #include <glib.h>
-
- int
- main(int agrc, char **argv)
- {
- g_printf("Hello world!
");
-
- return 0;
- }
- $ gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0 -o hello hello.c
-
- $ ./hello
, Linux pkgconfig :
- $ gcc `pkg-config --cflags --libs glib-2.0` -o hello hello.c
-
- $ ./hello
< >
http://developer.gimp.org/api/2.0/glib/index.html
http://www.ibm.com/developerworks/linux/tutorials/l-glib/index.html
:Glib (2)
:http://blog.chinaunix.net/space.php?uid=25696269&do=blog&id=466217