[fpc-pascal] Re: Linking to C++ DLL compiled with MSVC
pascaldragon at googlemail.com
Mon Oct 10 21:01:19 CEST 2011
On 10.10.2011 20:28, Michael Lutz wrote:
> Am 10.10.2011 17:41 schrieb Sven Barth:
>> Move the "external ..." part to the interface and remove the one in the
>> implementation section. This works at least for me and is the usual way
>> of importing functions in their own unit.
> Thanks, that works. Summary of some more tests:
> - 'external ...' in the interface section works
> - 'external ...' in the implementation if the procedure is not declared in
> the interface section works
> - 'external ...' in the implementation and a declaration in the interface
> section does NOT work
> That probably should at least get a documentation line somewhere.
In my opinion this should be a bug, because at least Delphi allows to
use the third variation. So could you report one, so it's not forgotten?
More information about the fpc-pascal