Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A12F6184FB for ; Tue, 6 Oct 2015 15:18:50 +0000 (UTC) Received: (qmail 80087 invoked by uid 500); 6 Oct 2015 15:18:32 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 80004 invoked by uid 500); 6 Oct 2015 15:18:32 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 79994 invoked by uid 99); 6 Oct 2015 15:18:32 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 15:18:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 674301A211F for ; Tue, 6 Oct 2015 15:18:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_FILL_THIS_FORM_SHORT=0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id y-YlJ-m9LU40 for ; Tue, 6 Oct 2015 15:18:21 +0000 (UTC) Received: from mail.am-soft.de (mail.am-soft.de [83.218.36.120]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 65DF1439ED for ; Tue, 6 Oct 2015 15:18:21 +0000 (UTC) Envelope-To: dev@apr.apache.org Received: from localhost (dslb-178-000-168-119.178.000.pools.vodafone-ip.de [178.0.168.119]) by mail.am-soft.de (Postfix) with ESMTP id 2A38EEB3B7 for ; Tue, 6 Oct 2015 17:18:20 +0200 (CEST) Date: Tue, 6 Oct 2015 17:18:20 +0200 From: =?utf-8?Q?Thorsten_Sch=C3=B6ning?= Organization: AM-SoFT IT-Systeme X-Priority: 3 (Normal) Message-ID: <683692937.20151006171820@am-soft.de> To: dev@apr.apache.org Subject: No support for properly building DLLs without /export MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, APR has some places where DLLs need to be build, e.g. in iconv for ces and ccs modules. The example make files for Visual Studio use the "/export" argument for its linker to make functions or structures externally available, but such a feature is not supported by all linkers. I e.g. use Embarcadero C++Builder, which doesn't support such thing, so I need a workaround instead by creating my own files which declare the exported functions and structure as exported and include the original file afterwards. This works liek the following: > __declspec(dllexport) struct iconv_module_desc iconv_module; > __declspec(dllexport) DATA; > #include "../../../../src/ces/euc-jp.c" As you already use API_DECLARE_* to decorate some functions, wouldn't it be better to change everything which is mentioned in "/exported" currently to use that as well? This way people with other toolchains would have more influence. Mit freundlichen Gr=C3=BC=C3=9Fen, Thorsten Sch=C3=B6ning --=20 Thorsten Sch=C3=B6ning E-Mail: Thorsten.Schoening@AM-SoFT.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Gesch=C3=A4ftsf=C3=BChrer: Andreas Muchow