Bdale Garbee writes:
> On Mon, 2007-09-10 at 17:11 +0200, Matthias Klose wrote:
> 
> > gcc -std=gnu99  -O2 -g -Wall   -o tar  buffer.o compare.o create.o delete.o 
> > extract.o xheader.o incremen.o list.o misc.o names.o sparse.o system.o 
> > tar.o transform.o update.o utf8.o ../lib/libtar.a   -lrt 
> > ../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_putc':
> > /build/user/tar-1.18/lib/argp-fmtstream.h:233: multiple definition of 
> > `argp_fmtstream_putc'
> > tar.o:/build/user/tar-1.18/src/../lib/argp-fmtstream.h:233: first defined 
> > here
> 
> Any idea why?

       -fgnu89-inline
           The option -fgnu89-inline tells GCC to use the traditional
GNU semantics for "inline" functions when in
           C99 mode.
             This option is accepted and ignored by GCC versions 4.1.3
up to but not including 4.3.  In GCC versions
           4.3 and later it changes the behavior of GCC in C99 mode.
Using this option is roughly equivalent to
           adding the "gnu_inline" function attribute to all inline
functions.

           The option -fno-gnu89-inline explicitly tells GCC to use
the C99 semantics for "inline" when in C99 or
           gnu99 mode (i.e., it specifies the default behavior).  This
option was first supported in GCC 4.3.  This
           option is not supported in C89 or gnu89 mode.

           The preprocessor macros "__GNUC_GNU_INLINE__" and
"__GNUC_STDC_INLINE__" may be used to check which seman-
           tics are in effect for "inline" functions.

adding that option lets the build succeed.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to