On Tue, 2005-05-17 at 14:57, chinmay bhat wrote: > Hello friends, > > I have a mib table copiled using mib2c -c mib2c.create-dataset.conf MIBNODE. > the auto generated code uses the function > > netsnmp_table_set_add_indexes();
I presume there are some parameters within that call? > and the g++ compiler gives a link time error: > > /agent/source/commonTables.cc:91: undefined reference to > `netsnmp_table_set_add_indexes' It's possibly being confused by the fact that this is a variable-parameter function, and trying to match up parameter types. The Net-SNMP suite is basically written in C, not C++, so it's not unusual for g++ (or other C++ compilers) to struggle. > The version of NET-SNMP is : > NET-SNMP version: 5.0.6 That's fairly old now. It's probably worth trying with the latest 5.0.x release (either 5.0.9 or the upcoming 5.0.10), or preferably the most recent 5.2.1 version. See if C++ inconsistencies have been fixed there. > Can anybody specify what other libraries i should use in > order to remove this link time error? It won't be a missing library - it's more likely to be C-vs-C++ linking differences. Dave ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ 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