It was a problem with the linking of libraries.. Thanks I have managed to solve it by linking all libraries.. 18 errors have now been reduced to 5..
Has anyone of you encountered these errors please? I am using MinGW for the gcc compiler, Windows 7 -32bit and Net-SNMPv5.5 Regards, Chris Description Resource Path Location Type expected '=', ',', ';', 'asm' or '__attribute__' before 'uint64_t' snmpdemoapp line 1557, external location: C:\usr\include\net-snmp\net-snmp-config.h C/C++ Problem unknown type name '__int64' snmpdemoapp line 1558, external location: C:\usr\include\net-snmp\net-snmp-config.h C/C++ Problem expected '=', ',', ';', 'asm' or '__attribute__' before 'uint32_t' snmpdemoapp line 1555, external location: C:\usr\include\net-snmp\net-snmp-config.h C/C++ Problem expected '=', ',', ';', 'asm' or '__attribute__' before 'uintmax_t' snmpdemoapp line 1559, external location: C:\usr\include\net-snmp\net-snmp-config.h C/C++ Problem unknown type name '__int64' snmpdemoapp line 1560, external location: C:\usr\include\net-snmp\net-snmp-config.h C/C++ Problem -----Original Message----- From: NetSNMP Mailbox [mailto:net-snmp-m...@freesnmp.com] On Behalf Of Robert Story Sent: Tuesday, July 14, 2015 3:06 PM To: Chetcuti, Christian Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Building snmpdemoapp error On Mon, 13 Jul 2015 14:29:09 +0000 Christian wrote: CC> I've added the CC> source file and the respective makefile. When I pass the make CC> command the following is the returned response: CC> CC> C:\usr\include>make snmpdemoapp CC> gcc -I. `net-snmp-config --cflags` -c -o snmpdemoapp.o CC> snmpdemoapp.c /bin/sh: net-snmp-config: command not found It looks like you need to set up a path so that the makefile can find the net-snmp-config command. Either that, or run the command manually and use its output in the makefile instead of `net-snmp-config --cflags`. Robert HOB Software Ltd www.hobsoft.com<http:/www.hobsoft.com> [HOB][HSM25] ______________________________________________________________ Disclaimer: This message may contain confidential and legally privileged information. If you are not the addressee notify the sender immediately and delete it (do not copy, forward, disclose or use any part of it). Internet communications cannot be garanteed to be timely, secure, error or virus-free. The company does not accept liability for any errors or omissions. ______________________________________________________________ ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders