Compiling C++ dynamic module

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2006
John Quigley
 
Posts: n/a
Default Compiling C++ dynamic module

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0