From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14223 invoked by alias); 20 Sep 2006 21:11:13 -0000 Received: (qmail 14212 invoked by uid 22791); 20 Sep 2006 21:11:13 -0000 X-Spam-Check-By: sourceware.org Received: from tomts25.bellnexxia.net (HELO tomts25-srv.bellnexxia.net) (209.226.175.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Sep 2006 21:11:06 +0000 Received: from smtp1.sympatico.ca ([209.226.175.62]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with SMTP id <20060920211102.PAAX1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> for ; Wed, 20 Sep 2006 17:11:02 -0400 X-Mailer: Openwave WebEngine, version 2.8.6.6 (webedge20-101-174-112-20020617)" From: Andre-John Mas To: Date: Wed, 20 Sep 2006 21:11:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060920211102.PAAX1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Compile error, including udp_var.h X-SW-Source: 2006-09/txt/msg00147.txt.bz2 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 #include #define _KERNEL #include #include #include #include #include #include #include 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