Albert Chu wrote:
> I've begun looking at using net-snmp for a project.  It seems that
> net-snmp/net-snmp-config.h includes many of the same #defines that
> autoconf generates for a project.  So if you are using autoconf in your
> project and want to use libnetsnmp w/ your project, a ton of #define
> redefine warnings come flying by.

Net-SNMP 5.4 comes with an initial attempt to address some of these
issues. If you look at net-snmp-config.h you'll see that e.g. "#define
NETSNMP_NO_AUTOCONF_DEFINITIONS" will cause the autoconf definitions to
get omitted. But there's a significant risk involved. Since our code
makes use of those definitions all over the place, you really want to
make sure *your* code contains the relevant #defines somewhere else.

We're fully open for suggestions on how to better handle this in the future.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to