[getdns-api] Placement of the library vs. the examples in the doc

Willem Toorop willem at nlnetlabs.nl
Thu May 22 09:50:11 CEST 2014


Paul,

There is no getdns_libevent.h in the getdns library.  In the source tar
ball there is a directory containing the examples ( src/example ) which
has wrapper include files (getdns_core_only.h and getdns_libevent.h) to
make the API spec examples compile.

The examples themselves are not touched and are exactly how they appear
in the spec.  You can build them simply by running make example from
your build directory.

Good luck,

-- Willem

op 22-05-14 04:16, Paul Hoffman schreef:
> # gcc -std=c99 -c -fPIC -pedantic -g -I./ -Werror -Wall -Wextra -c example-simple-answers.c
> example-simple-answers.c:6:29: fatal error: getdns_libevent.h: No such file or directory
>  #include <getdns_libevent.h>
>                              ^
> compilation terminated.
> # dir /usr/local/include/
> total 12
> drwxr-xr-x  3 root root 4096 May 21 17:06 .
> drwxr-xr-x 10 root root 4096 Apr 16 11:26 ..
> drwxr-xr-x  2 root root 4096 May 21 18:21 getdns
> # dir /usr/local/include/getdns/
> total 60
> drwxr-xr-x 2 root root  4096 May 21 18:21 .
> drwxr-xr-x 3 root root  4096 May 21 17:06 ..
> -rw-r--r-- 1 root root  2150 May 21 18:21 getdns_ext_libevent.h
> -rw-r--r-- 1 root root  5252 May 21 18:21 getdns_extra.h
> -rw-r--r-- 1 root root 38748 May 21 18:21 getdns.h
> 
> This was from installing the getdns-0.1.1 release. Do people think that the installer was wrong for creating a new sub-directory under the /usr/local/includes, or that the examples should be fixed?
> 
> --Paul Hoffman
> _______________________________________________
> getdns-api mailing list
> getdns-api at vpnc.org
> 

_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org



More information about the spec mailing list