Chino,
I found an issue with the compilation script, it's working now, thanks.
Sebastian-
Chino Aureus escribió:
Hi,
What I do is pun the header files in "extern "C" block:
extern "C" {
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
// other header files written in C
};
...
// Class declarations
Regards,
Chino
On 9/11/06, Sebastian Bello <[EMAIL PROTECTED]>
wrote:
Hi all,
how do I extend the agent with a .so using C++?
I tried using the following changes in addition to compiling with g++:
extern "C" {
void init_mo(void);
void initialize_table_moTable(void);
Netsnmp_Node_Handler moTable_handler;
Netsnmp_First_Data_Point moTable_get_first_data_point;
Netsnmp_Next_Data_Point moTable_get_next_data_point;
}
but got
dlopen failed: /root/sbello/snmp/mo.so:
undefined
symbol: __gxx_personality_v0
when trying to process a get.
Any suggestions?
Thanks,
Sebastian-
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
|
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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