Wrong library order in pkgconfig #976
When integrating HPX with Cactus, I build HPX not with cmake, but by querying pkgconfig for build and link options. In particular, I use "pkg-config hpx_application --libs-only-other" to get the list of libraries necessary for linking. This leads to
This leads to the linker error
I checked; this function is defined in the dynamic library hpx, and is called from a function in the static library hpx_init. Thus I assume that the order of libraries should maybe be
i.e. that "hpx" should be repeated.
I haven't corrected the problem yet. My first approach would be to simply duplicate the library list that pkgconfig suggests.
No, these times are not over, this is still very much the Unix standard. Certain linkers have options to avoid this, e.g. --whole-archive or --begin-group/--end-group for GNU binutils, but this is not portable.
(I am using the fixing_588 branch.)
I did not look at the undefined closely enough. The undefined reference is to
and this function does indeed not exist in any HPX library generated on my system.
The function that is provided and that confused me is
I don't know how closely this function is related to the problem.