Re: Compiling my program (use Lib's Net-SNMP) with Mingw in Windows
Jarod <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Help please,
I am doing wrong?
$ gcc demo1.c -o demo1 -I/c/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,
> --------------------------------------------
> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users