I'm seeing the following and a few other similar ones when trying to link
Code: Select all
/usr/bin/ld: /home/build/builds/_shared/supplier/chilkat/libs/x64/libchilkat.a(ChilkatResolve.o): in function `ChilkatResolve::mxLookup(char const*, ScoredStrings&, LogBase&, bool)':
ChilkatResolve.cpp:(.text+0x64e): undefined reference to `__res_query'
Any ideas how I can get this code to compile. Im currently using these flags so -lresolve is thereVarious symbols previously defined in libresolv have been moved to libc
in order to prepare for libresolv moving entirely into libc (see earlier
entry for merging libraries into libc). The symbols __dn_comp,
__dn_expand, __dn_skipname, __res_dnok, __res_hnok, __res_mailok,
__res_mkquery, __res_nmkquery, __res_nquery, __res_nquerydomain,
__res_nsearch, __res_nsend, __res_ownok, __res_query, __res_querydomain,
__res_search, __res_send formerly in libresolv have been renamed and no
longer have a __ prefix. They are now available in libc.
Code: Select all
-std=c++20 -ldl -lrt -lstdc++fs -lstdc++ -lresolv
Code: Select all
g++ (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)