This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Compile error, including udp_var.h
- From: Andre-John Mas <ajmas at sympatico dot ca>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 20 Sep 2006 17:11:02 -0400
- Subject: [ECOS] Compile error, including udp_var.h
Hi,
We are in the process of adapting the SNMP implementation to C++ for
our needs, but we have hit a few problems. We are using the FreeBSD
networking stack.
The error is as follows:
In file included from ../interface/snmp/src/UdpMib.cpp:28:
application_install/include/netinet/udp_var.h:117: error: expected constructor, destructor, or type conversion before '(' token
application_install/include/netinet/udp_var.h:117: error: expected `,' or `;' before '(' token
I am not sure what could be the issue. Commenting out the define
helps things compile, but I am not sure that I want to leave it
that way. My includes in the class the references the udp_var.h
file are:
#include <pkgconf/system.h>
#include <sys/protosw.h>
#define _KERNEL
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/in_pcb.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>
Any ideas?
Andre
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss