[AGENT++] Using Agent++ library
Vinoth
vinoth at isoftel.com
Wed Mar 10 05:44:58 CET 2004
Hi all,
I tried to write a wrapper class snmpAgent, around Agent++ library . But
I find problem in compiling the following code using g++ version 3.3.
snmp++ version : 3.2.8
Agent++ version : 3.5.12d
libdes-l version : 4.01
sample code
========
snmpAgent.cpp
=============
#include <iostream>
using namespace std;
#include <threads.h>
class snmpAgent : public Thread
{
public:
void run(void)
{
while( 1 )
{
cout << "inside snmpAgent::run() ... " << endl;
}
}
};
compilation error
===========
g++ -I../agent++/include -I../snmp++/include -I../libdes -c snmpAgent.cpp -o
./snmpAgent.o
In file included from snmpAgent.cpp:3:
../agent++/include/threads.h:95:2: #error "My errror... vinoth"
snmpAgent.cpp:6: error: parse error before `{' token
make: *** [snmpAgent.o] Error 1
Please help me to solve this error.
Thanks,
Vinoth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20040310/c6e3e64c/attachment.htm
More information about the AGENTPP
mailing list