Oh, ok.That is possible.

as i ahve only a single index
i am using the function

netsnmp_table_dataset_add_index(table_set, ASN_INTEGER);

is that ok ?

Note : it is working fine..


From: Dave Shield <[EMAIL PROTECTED]>
To: chinmay bhat <[EMAIL PROTECTED]>
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: NETSNMP newbies,Library Problem.
Date: Wed, 18 May 2005 14:07:58 +0100

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


_________________________________________________________________
Dhoom ya Humtum? http://server1.msn.co.in/sp05/iifa/ Which is your fav movie?



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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