On 8/14/10 6:27 AM, Bruno Haible wrote:
Or import the module 'progname' from gnulib, and start the main()
function of your program with the statement
set_program_name (argv[0]);
That worked perfectly. Thanks.
Peter
Paul Eggert wrote:
> 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 import the module 'progname' from gnulib, and start the main()
function of your program with the statement
set_program_name (argv[
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 arr
Hi,
I'm new to using gnulib so I'm probably making some trivial mistake.
Anyway, I try to use the dirname module in a C++ context which results in:
libtool: link: g++ -g -O2 -o bin/.libs/foo bin/foo.o -Wl,-bind_at_load
-L/opt/local/lib -L/usr/lib ./lib/.libs/libyat-util.dylib -lcblas
./gnul