GLib

Glib/Timers のラッパー

てことで,書いた.(ちょうてきとう これで少し楽になった.はっは. #include <iostream> #include <glib.h> #include <unistd.h> using namespace std; class GTimerP { private: GTimer *Timer; gulong microseconds; gdouble time; public: GTimerP() { Timer = g_timer_new(); } ~G</unistd.h></glib.h></iostream>…

undefined reference to `g_timer_continue' / glib の timers 使い方

glibの timers を使おうとして,g_timer_continue を呼ぶと,「うまく言語化できない」などと言って,コンパイルできなかった. というか, g_timer_new/start/stop などは使えるのに,なぜ g_timer_continue が使えない... と思ったのだけど,結論からい…

glib インストール / コンパイル

インストール@Ubuntu % sudo aptitude install libglib2.0-dev パスの通った場所に glib.h ははいらない バージョンを明示的に指定するためなのかな? -I とか -l とかつけないと,エラーいろいろでる. hoge.cpp:10:18: error: glib.h: No such file or di…