I need a help, I am trying to compile a program in C, with Mingw in Windows,


and it presents syntax error on lib's net-snmp,  do I forget of something?


c:\>gcc -c demo1.c -o demo1 -Ic:\usr\include\ -lsnmp
In file included from demo1.c:1:
*c:/usr/include/net-snmp/net-snmp-config.h:1541: error: syntax error before
"uint32_t"
c:/usr/include/net-snmp/net-snmp-config.h:1541: warning: data definition has
no type or storage class
c:/usr/include/net-snmp/net-snmp-config.h:1543: error: syntax error before
"uint64_t"
c:/usr/include/net-snmp/net-snmp-config.h:1543: warning: data definition has
no type or storage class
c:/usr/include/net-snmp/net-snmp-config.h:1544: error: syntax error before
"int64_t"
c:/usr/include/net-snmp/net-snmp-config.h:1544: warning: data definition has
no type or storage class*


In file included from c:/usr/include/net-snmp/definitions.h:22,
     from c:/usr/include/net-snmp/net-snmp-includes.h:71,
                 from demo1.c:2:
c:/usr/include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104:
error: previous declaration of 'ssize_t' was
here

*c:/usr/include/net-snmp/types.h:108: error: redefinition of typedef
'uint16_t'
c:/usr/include/net-snmp/net-snmp-config.h:1545: error: previous declaration
of 'uint16_t' was here
c:/usr/include/net-snmp/types.h:172: error: syntax error before "intmax_t"
c:/usr/include/net-snmp/types.h:172: warning: data definition has no type or
storage class
c:/usr/include/net-snmp/types.h:185: error: syntax error before "uintmax_t"
c:/usr/include/net-snmp/types.h:185: warning: data definition has no type or
storage class
In file included from c:/usr/include/net-snmp/utilities.h:39,*
                 from c:/usr/include/net-snmp/net-snmp-includes.h:74,
                 from demo1.c:2:
c:/usr/include/net-snmp/library/system.h:85: warning: "struct timezone"
declared inside parameter list
c:/usr/include/net-snmp/library/system.h:85: warning: its scope is only this
definition or declaration, which is probabl
y not what you want
In file included from c:/usr/include/net-snmp/net-snmp-includes.h:81,
                 from demo1.c:2:
c:/usr/include/net-snmp/snmpv3_api.h:36:55:
net-snmp/library/snmpv3-security-includes.h: No such file or directory
demo1.c:8:1: unterminated #ifdef

--------------------------------------------






--------------------------------------------
content of the demo1 (simple include to test) :

#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <string.h>


#define DEMO_USE_SNMP_VERSION_2

int main(int argc, char ** argv) {


    return(0);
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to