apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning <tschoen...@am-soft.de>
Subject No support for properly building DLLs without /export
Date Tue, 06 Oct 2015 15:18:20 GMT
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üßen,

Thorsten Schöning

Thorsten Schöning       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äftsführer: Andreas Muchow

View raw message