This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Compile error, including udp_var.h
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