[AGENT++] How to use namespaces unter Windows XP, Microsoft C++ Compiler?

Petersen, Thorsten Thorsten.Petersen at draeger.com
Fri Jun 4 13:22:11 CEST 2004


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 
------------------------------------------------------------------ 

 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
Url: http://lists.agentpp.org/pipermail/agentpp/attachments/20040604/e5f4deda/attachment.txt 


More information about the AGENTPP mailing list