* [ECOS] Compile error, including udp_var.h
@ 2006-09-20 21:11 Andre-John Mas
2006-09-20 21:18 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: Andre-John Mas @ 2006-09-20 21:11 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Compile error, including udp_var.h
2006-09-20 21:11 [ECOS] Compile error, including udp_var.h Andre-John Mas
@ 2006-09-20 21:18 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2006-09-20 21:18 UTC (permalink / raw)
To: Andre-John Mas; +Cc: ecos-discuss
On Wed, Sep 20, 2006 at 05:11:02PM -0400, Andre-John Mas wrote:
> 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
What do you get at that line when you look at the output of cpp? ie
use -E to gcc. Has SYSCTL_DECL(_net_inet_udp); been expanded?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-20 21:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 21:11 [ECOS] Compile error, including udp_var.h Andre-John Mas
2006-09-20 21:18 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).