[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Incorrect demangling
On Sat, 21 Apr 2012, Mouse wrote:
> >> % cc -o z z.c
> >> /var/tmp//ccKokvnE.o: In function `main':
> >> z.c:(.text+0x12): undefined reference to `foo(long double *,...)( *)'
> >> %
> > well if you investigated a bit more you might find that it is not the
> > C compiler that is doing this.
> (a) I didn't say anything about what was doing it.
"This looks to me like a misfire of C++ demangling, but that doesn't
really help all that much, especially since there's no C++ involved."
in case you did not investigate further as yet:
% gcc -o foo foo.c
/var/tmp//ccOOsL8j.o: In function `main':
foo.c:(.text+0x7): undefined reference to `foo(long double *,...)( *)'
% gcc -Wl,--no-demangle -o foo foo.c
/var/tmp//ccQoqdGk.o: In function `main':
foo.c:(.text+0x7): undefined reference to `foo__prep'
Main Index |
Thread Index |