Re: simple windows C app build

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, Apr 19, 2011 at 9:59 PM, Thomas Andrews <[email protected]> wrote:

> I'm trying to build a trivial C proggie in windows xp. The code builds
> fine in debian. It is based on this example:
> http://www.cuddletech.com/articles/snmp/node26.html
>
> When I do this:
>     gcc -Wall -I c:\usr\include snmp_test.c -o snmp_test
>
> I get this:
>     c:\usr\include/net-snmp/net-snmp-config.h:1555: error: expected
> '=', ',', ';', 'asm' or '__attribute__' before 'uint32_t'
>
> Gcc was installed along with Code::Blocks
> The net-snmp stuff came from:
>
>
> http://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.5-binaries/
> Specifically, I installed net-snmp-5.5.0-1.x86.exe
>
> What am I missing here?
>

The net-snmp-config.h header file included in the 5.5 binaries is intended
for building with Visual C++, not with gcc.

If you download the Net-SNMP source code and build and install it yourself
then a net-snmp-config.h header file will be generated by the configure
script that works fine with gcc.

Bart.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.