On 08/13/10 16:37, Peter Johansson wrote:
> /usr/bin/ld: Undefined symbols:
> _program_name

dirname depends on xalloc to allocate storage,
and that depends on xalloc-die, which needs
to know your program's name.  One simple
way to fix the problem is to define a global
variable program_name and arrange for your
main function to set it from argv[0].  Or,
you can supply your own xalloc_die function.
Or, if you want to check the result against
NULL yourself, you can use mdir_name rather
than dirname.

Reply via email to