This is a discussion on Compiling C++ dynamic module within the SNMP Users forums, part of the Networking and Network Related category; Hey Folks, I'm working on a dynamic module for net-snmp. This module integrates with a server-side project ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hey Folks,
I'm working on a dynamic module for net-snmp. This module integrates with a server-side project written in C++. I'm having trouble in the linking stage when compiling the dynamic module (which is a mixed bag of C/C++). I'm currently wrapping C calls in the C++ code with ' extern "C" ', as such: #ifdef __cplusplus extern "C" { #endif #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #ifdef __cplusplus } #endif The thing compiles without error or warning, however, when I load the mod, and execute snmptable, I see there was an error in loading: csmAuthenticationFailures /cgrid/local/net-snmp/lib/cgrid/csmAuthenticationFailures.so dlopen failed: /cgrid/local/net-snmp/lib/cgrid/csmAuthenticationFailures.so: undefined symbol: _ZNSs4_Rep11_S_terminalE error Has anyone done something similar who would care to offer some advice? Thanks so much! Regards, John Quigley ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642 _______________________________________________ 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/...net-snmp-users |