Compile Agent++ example in my project

Hello everyone , I’m very noob to snmp and even compilation in general :smiley: I used and modified an example agent (static_table) however i would to use it in my project folder but i dont know how to compile it in a good way , if i just do g++ agent.cpp i have sooooo much undefined reference.

I tried something like that :slight_smile:
g++ -DHAVE_CONFIG_H -I. -I/SNMP/agent+±4.5.0 -I/SNMP/agent+±4.5.0/include -I/SNMP/agent+±4.5.0/include -pthread -I/usr/local/include -D_GNU_SOURCE -D_XOPEN_SOURCE=XPG6 -g -O2 -pthread -MT agent.o -MD -MP -MF .deps/agent.Tpo -c -o agent.o agent.cpp

But not working too please help me
@AGENTPP Please help me I hope its not too complicate, is there a g++ command ?

What about autoconf, cmake, or gmake? For all those tools, config files are available.
If you want to use g++ directly (which is possible but rather laborious), you should not forget to include snmp++ include files path in your command.