On 13/12/16 15:56, Maurizio Cimadamore wrote: > I think the problem is caused by a quirk in my gcc - if I compile > something with > > gcc -ldl foo.cpp > > it fails with messages similar to the one I mentioned. To make it work I > have to do: > > gcc foo.cpp -ldl
The latter is correct: the linker scans from left to right. If the former works it's an accident. Andrew.