To link the master agent against C++ code you need to link with g++, but don't
compile with it. Compile the main agent with gcc as normal. The normal
makefiles which ./configure generates don't allow you to do this, but I've
submitted a bug report to request that the ./configure script allows you to
specify a separate linker. If you run ./configure as normal, I've created a
patch file which will modify the auto-generated Makefiles so that you *can*
specify the linker separately from the compiler. See bug 1416481:
http://sourceforge.net/tracker/index.php?func=detail&aid=1416481&group_id=12694&atid=112694
Regards
Raffles
stan buyanov wrote:
Hello,
I am using net-snmp v5.3.0.1. I wrote a C subagent, and it works fine.
Now I need to convert the subagent to C++.
What steps do I need to do?
Do I need to compile and link the master agent using g++?
What is best approach to convert the C subagent to C++?
Where could I find information about this kind of conversion?
I would greatly appreciate your help.
Stan
------------------------------------------------------------------------
Yahoo! Mail
Use Photomail
<http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com>
to share photos without annoying attachments.
--
Visit our website at www.roke.co.uk
Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.
The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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/listinfo/net-snmp-users