Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'glib'

655950 - g_hash_table problem: c glib programming g_hash_table
  1. Here is the problem:
  2.  
  3. I have a g_hash_table, using the direct hashing function. This hash table holds string(key)->int(value) pairs. In my program, there are two functions: one takes a hash table, and writes the values to GConf; the other reads the values from GConf and returns a new hash table.
  4.  
  5. To test my functions, I create some data and store it in the hash table, using the following code:
  6.  
  7.   GHashTable *tmp_outputs = g_hash_table_new (NULL, NULL);
  8.   gchar *tmp_output_id = g_strdup ("StringOfLettersWithNoSpaces");
  9.  
591835 - xmingw glib compilation error: mingw gcc glib cross-compiling
  1. /tmp/glib-2.12.12/glib/gutf8.c:402: undefined reference to `__g_locale_get_charset_aliases'
  2. .libs/gutf8.o: In function `g_get_charset':
  3. /tmp/glib-2.12.12/glib/gutf8.c:534: undefined reference to `__g_locale_charset_raw'
  4. /tmp/glib-2.12.12/glib/gutf8.c:467: undefined reference to `__g_locale_charset_unalias'
  5. /usr/local/20.40-toolchains/gettext/lib/libgettextlib.a(mkdtemp.o):mkdtemp.c:(.text+0x5f): undefined reference to `_gettimeofday'
worth-right worth-right fantasy-obligation