error when running jtreg tests
Andrew Haley
aph at redhat.com
Tue Dec 13 17:05:48 UTC 2016
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.
More information about the build-dev
mailing list