Re: Multiple definition errors when linking libpoke into gdb

2024-02-14 Thread Bruno Haible
Jose E. Marchesi wrote: > I think in this case it is better to not use the xalloc module in > libpoke at all. This looks feasible: There are not many references to functions like xmalloc in libpoke. pkl-ast.c:116: PKL_AST_STRING_POINTER (new) = xstrdup (str); pkl-ast.c:131: PKL_AST_IDENTIFIER_P

Re: Multiple definition errors when linking libpoke into gdb

2024-02-14 Thread Jose E. Marchesi
> Hannes Domani wrote: >> When I'm trying to (statically) link libpoke into gdb, I get the following >> errors: >> >> ... gl-libpoke/xmalloc.c:44: multiple definition of `xmalloc'; alloc.o >> ... gdb/alloc.c:49: first defined here >> >> Both gdb and gl-libpoke define these x* allocation functi

Re: Multiple definition errors when linking libpoke into gdb

2024-02-14 Thread Bruno Haible
Hannes Domani wrote: > When I'm trying to (statically) link libpoke into gdb, I get the following > errors: > > ... gl-libpoke/xmalloc.c:44: multiple definition of `xmalloc'; alloc.o > ... gdb/alloc.c:49: first defined here > > Both gdb and gl-libpoke define these x* allocation functions, and I'