Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 38738 invoked from network); 25 Feb 2005 09:24:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Feb 2005 09:24:32 -0000 Received: (qmail 68015 invoked by uid 500); 25 Feb 2005 09:24:26 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 67908 invoked by uid 500); 25 Feb 2005 09:24:26 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 67893 invoked by uid 99); 25 Feb 2005 09:24:25 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp12.wanadoo.fr (HELO smtp12.wanadoo.fr) (193.252.22.20) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 25 Feb 2005 01:24:24 -0800 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1203.wanadoo.fr (SMTP Server) with ESMTP id 302931C000B9 for ; Fri, 25 Feb 2005 10:24:22 +0100 (CET) Received: from doc (AMarseille-152-1-4-62.w81-251.abo.wanadoo.fr [81.251.98.62]) by mwinf1203.wanadoo.fr (SMTP Server) with ESMTP id 84D561C000AF for ; Fri, 25 Feb 2005 10:24:21 +0100 (CET) X-ME-UUID: 20050225092421544.84D561C000AF@mwinf1203.wanadoo.fr From: =?iso-8859-1?Q?Fr=E9d=E9ric_Bor?= To: Subject: RE: using apxs Date: Fri, 25 Feb 2005 10:24:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Thread-Index: AcUbGr6Nl7Bca7c8RkqQnq+NFwjgEwAAFZ3g Message-Id: <20050225092421.84D561C000AF@mwinf1203.wanadoo.fr> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, You're using C++ classes in C code. That's not possible and you can fix = this either by rewriting your C++ code in C, or either by doing C wrappers = (look for usage of extern "C"). Good luck. -----Message d'origine----- De=A0: news [mailto:news@sea.gmane.org] De la part de Laszlo Envoy=E9=A0: vendredi 25 f=E9vrier 2005 10:15 =C0=A0: dev@httpd.apache.org Objet=A0: using apxs Hi all, I created a C1.hpp and C1.cpp, compiled and linked into a C1.a file. I did copy the C1.a file into /usr/local/apache2/lib and C1.hpp into /usr/local/apache2/include. This class provides some usefull methods to process a request. OK. Now I would like to use it in my module mod_xyz. Entering the command /usr/local/apache2/bin/apxs -c -i -a mod_xyz.c returns these lines: /usr/local/apache2/build/libtool --silent --mode=3Dcompile gcc3 = -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=3D2 -D_REENTRANT = -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread = -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -c -o mod_xyz.lo mod_xyz.c && touch mod_xyz.slo In file included from mod_xyz.c:4: /usr/local/apache2/include/C1.hpp:6: parse error before "C1" /usr/local/apache2/include/C1.hpp:7: syntax error before '{' token /usr/local/apache2/include/C1.hpp:20: syntax error before "int" /usr/local/apache2/include/C1.hpp:27: syntax error before "int" /usr/local/apache2/include/C1.hpp:33: syntax error before "int" /usr/local/apache2/include/C1.hpp:39: syntax error before "void" /usr/local/apache2/include/C1.hpp:46: syntax error before "int" /usr/local/apache2/include/C1.hpp:53: syntax error before "char" /usr/local/apache2/include/C1.hpp:55: parse error before ':' token apxs:Error: Command failed with rc=3D65536 . How can I fix it? ----------------- L=E1szl=F3 Graf