Warning: substr() expects parameter 2 to be long, string given in /srv/www/midg3t.net/index.php on line 60
tedp - Taciturn

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/midg3t.net/index.php:60) in /srv/www/midg3t.net/weblog.ted on line 76

Taciturn

All entries (archive)

Fri 2 Dec 2005

A few notes about talloc.

If you include talloc.h and get some of the following messages (duplicates differing only by line number have been removed)...

/usr/include/talloc.h:97: error: syntax error before 'size_t'
/usr/include/talloc.h:109: error: syntax error before 'FILE'
/usr/include/talloc.h:115: error: syntax error before 'talloc_total_size'
/usr/include/talloc.h:116: error: syntax error before 'talloc_total_blocks'
/usr/include/talloc.h:127: error: syntax error before 'va_list'
/usr/include/talloc.h:136: error: syntax error before 'talloc_get_size'

Make sure you #include <stdio.h> and <sys/types.h> before you include <talloc.h>. As for the va_list error, make sure you define _GNU_SOURCE or _XOPEN_SOURCE before including sys/types.h (it's checked by features.h). I'm not sure which one is more correct, but both work OK on my system.

Now I understand why some Americans speak so highly of Mountain Dew —

Mountain Dew often incurs the disapproval of health experts due to its relatively high caffeine content. However, Mountain Dew marketed in Australia and Canada ... has no caffeine added at all.

I think I'll stick to V.

Comments

There are no comments on this entry.

Post comment


Also available in RSS.