I actually have modified the configure.in to replace the 'mymodule.c'
with 'mymodule.cpp' in mib_module_list_c makefile variable. However,
since configure.in changes from version to version, I wonder whether
there is a standard way to do that.

Thanks,
Stephen

-----Original Message-----
From: Wes Hardaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 4:14 PM
To: Stephen Yu
Cc: [email protected]
Subject: Re: Compile mib module in C++

>>>>> "SY" == Stephen Yu <[EMAIL PROTECTED]> writes:

SY> I implemented my own private mib module in C++. I want to compile 
SY> and link the module into the agent: snmpd.

SY> I run 'configure --with-mib-modules=mymodule'. However, it assumes 
SY> the implementation file is a C file and won't compile my .cpp source
file.
SY> What is the way to specify C++ implementation file?

You can't do that, I'm afraid...  the agent and code is C-based and I
don't believe it's possible to get it working with C++ without some
work.  (in theory, I bet it is, but I doubt it'll "just work")
--
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to