Re: C subagent to C++
stan buyanov <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Raffles, When I am running: patch Makefile patch_file I get a message: patch: **** malformed patch at line 4: # Misc Compiling Stuff. What is wrong? Thanks a lot for your help. 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.