[AGENT++] [PATCH 0/2] SNMP++ Include files fixes

Jochen Katz katz at agentpp.com
Fri Sep 2 23:35:04 CEST 2016


Hello,

> here are two fixes to add missing #includes that I had to apply to
> snmp++ header files in order fo build an application on top of
> agent++.
> 
> Without these fixes both snmp++ 3.3.7 and agent++ 4.0.6 build without
> errors, but applications using them fail because the snmp++ header
> files use some functions and types without including the relevant
> header files.

I assume that your project does not use autoconf. So your project /
compiler call is missing several defines that are needed by the
agent++/snmp++ headers. For example sys/socket.h is included like this:

# ifdef HAVE_SYS_SOCKET_H
#  include <sys/socket.h>
# endif

The files ...++/config.h files show these defines.

Regards,
  Jochen



More information about the AGENTPP mailing list