Re: Symbols collision not reported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6 October 2011 10:24, Matteo Foppiano wrote:
>
> Ok, the solution is to declare the global shutdown variable static,
> since it is used only inside mysql_test.c, but what I wanna know is if
> it is correct that in this situation the linker is not able to
> recognise the right symbol, or if this not-reported collision is a
> linker bug.

This behaviour is expected, because the symbol 'shutdown' is defined
by your application the linker doesn't need to look for it, so never
even sees the other definition in libc.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux