Re: C subagent to C++

stan buyanov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Raffles,
  
    Please disregard the last email from me concerning patching.  I changed the Makefile manually, and now a C++ subagent works with a master  agent.
  I greatly appreciate your help, Raffles.
            Best Regards,
            Stan
  

Raffles <[email protected]> wrote:  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 
>  
> 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.



			
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.