James Moe
unread,Jan 30, 2015, 1:07:28 PM1/30/15You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello,
I am looking into some code for DNS MX lookup. It compiles but is
missing a library for building the executable.
Can anyone suggest which library contains the missing functions?
c++ mx-lookup.cpp
/tmp/ccRz24GU.o: In function `MXLookup(char const*)':
mx-lookup.cpp:(.text+0x99): undefined reference to `__res_query'
mx-lookup.cpp:(.text+0xc6): undefined reference to `ns_initparse'
mx-lookup.cpp:(.text+0x10a): undefined reference to `ns_parserr'
mx-lookup.cpp:(.text+0x196): undefined reference to `ns_get16'
mx-lookup.cpp:(.text+0x1cd): undefined reference to `ns_name_uncompress'
collect2: error: ld returned 1 exit status
--
James Moe
jmm-list at sohnen-moe dot com