Thanks for everyone's help. right now i am able to compile my net-snmp stack using g++, had to make inline function to non inline.
i am going to use this
rstory> If you think INLINE is causing you problems, add -DNETSNMP_NO_INLINE to your
CFLAGS and recompile.
had to static typecast few variables.
my net-snmp-config file has
magfr> NSC_BASE_AGENT_LIBS="-lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp"
i was getting undefined reference to these functions adn when i tried to include the file where it was declared, got lots of error may be b'cos of the sequence of function call. so i put these functions in different file adn included that file.. and worked fine
void netsnmp_init_helpers(void);
void netsnmp_init_bulk_to_next_helper(void);
void netsnmp_init_serialize(void);
void netsnmp_init_debug_helper(void);
void netsnmp_init_read_only_helper(void);
void netsnmp_init_table_dataset(void);
and this error was pretty weired. which is in
mibgroup/mibII/ipAddr.h: extern FindVarMethod var_ipAddrEntry; for time being i just commented out b'cos i was holding the build. going to see this problem later.
> ./.libs/libnetsnmpmibs.so: undefined reference to
> `var_ipAddrEntry(variable*, unsigned long*, unsigned int*, int, unsigned
> int*, int (**)(int, unsigned char*, unsigned char, unsigned int, unsigned
> char*, unsigned long*, unsigned int))"
On 7/19/05, Robert Story <[EMAIL PROTECTED]> wrote:
On Tue, 12 Jul 2005 18:33:20 -0400 Deepak wrote:
DA> thanks for your reply. here is my lib include and when i made few INLINE
DA> function to non-inline i didn't get the link error for those function.
If you think INLINE is causing you problems, add -DNETSNMP_NO_INLINE to your
CFLAGS and recompile.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: < http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: < http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
--
"Those parts of the system that you can hit with a hammer are called hardware;
those program instructions that you can only curse at are called software."