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.