Hi all,
I have a requirement of accessing C++ datamodule in C source
files(generated using mib2c) of SNMP agent. To fecilitate this
special access in C++ datamodule files we use C wrappers as below
#ifdef __cplusplus
extern "C" {
#endif
int CdsprVariableInRangeIntegerValue(u_int16 ui16_ModuleID, u_int16
ui16_VariableID, int iValue);
int CdsprVariableInRangeRealValue(u_int16 ui16_ModuleID, u_int16
ui16_VariableID, double fValue);
int CdsprVariableInRangeSelectionValue(u_int16 ui16_ModuleID, u_int16
ui16_VariableID, const char );
XXXXXXXXXXX
etc;
#ifdef __cplusplus
}
#endif
When I try to access say function
"CdsprVariableInRangeIntegerValue(XXX)" , it throws a the following
compilation error
./.libs/libnetsnmpmibs.so: undefined reference to
'CdsprVariableInRangeIntegerValue'
Has anyone of faced similar situation? please help - I am going mad
over this for the last 2 days.
With regards,
Raghavendra
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users