This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]