When you are generating DLLs with Borland and some versions of Microsoft
Visual C++ compiler (at least version 1.x) it is required that each exported
function or variable must have the __export
directive as part
of the function definition. Unfortunately this can not be combined with the
already existing PUBLIC
macro used throughout the Library as
the __export
directive must be placed directly before the function
name.
There is not a specific patch but you can use the
Perl script produced by Eric
Prud'hommeaux to insert the __export
directives into the source
code. Of course this requires that you have a box that runs Perl available.