[AGENT++] How to use namespaces unter Windows XP, Microsoft C++ Compiler?
Frank Fock
fock at agentpp.com
Sun Jun 6 11:28:19 CEST 2004
Hello Thorsten,
Have you seen the "using snmp_pp" statement in the header file?
With the GCC it works, so may be it is a limitation of the MSVC++
compiler?
Best regards,
Frank
Petersen, Thorsten wrote:
>Hello
>
>
>
>I got a problem using the snmp++ 3.2.12 and the agent++ 3.5.18 libraries with namespaces. To compile the snmp++ library I use the SNMP_PP_NAMESPACE macro. For the agent++ library I use both the SNMP_PP_NAMESPACE and the AGENTPP_NAMESPACE macros. Unfortunately, when I compile the agent++ library, the compiler (MSVC 13.10.3077) generates errors like
>
>
>
>"X:\mod_S30\S30_Core\S30_Core\lib\agent++\include\agent_pp\snmp_pp_ext.h(126): error C2504: 'Oid' : base class undefined"
>
>
>
>The reason is obvious: instead of using the line as is
>
>"class AGENTPP_DECL Oidx: public Oid {"
>
>
>
>the line 126 should be declared
>
>"class AGENTPP_DECL Oidx: public Snmp_pp::Oid {"
>
>
>
>The question is : How to use both libraries, snmp++ and agent++ , with namespaces?
>
>
>
>With kind regards
>
>Thorsten Petersen
>
>
>
>-------------------------------------------------------
>Important Note
>This email and any attachment hereto are confidential and may contain trade
>secrets or may be otherwise protected from disclosure. If you have received
>it in error you are in notice of this fact. Please notify us immediately by
>reply email and then delete this email and any attachment from your system.
>Please understand that you are not allowed to copy this email or any
>attachment hereto or disclose its contents to any other person. Thank you.
>
>
>
>Wichtiger Hinweis
>Diese E-Mail und etwaige Anlagen können Betriebs- oder Geschäftsgeheimnisse
>oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail
>irrtümlich erhalten haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte
>benachrichtigen Sie uns in diesem Fall umgehend durch Rücksendung der E-Mail
>und löschen Sie diese E-Mail einschließlich etwaiger Anlagen von Ihrem
>System. Diese E-Mail und ihre Anlagen dürfen weiterhin nicht kopiert oder an
>Dritte weitergegeben werden. Vielen Dank.
>------------------------------------------------------------------
>Thorsten Petersen <thorsten.petersen(at)draeger.com>
>Dräger Medical AG & Co. KGaA
>Moislinger Allee 53-55
>23542 Luebeck, Germany
>------------------------------------------------------------------
>
>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>
>
More information about the AGENTPP
mailing list