How to use a function without their sources

Jordi Sayol g.sayol at yahoo.es
Sun Jan 20 02:50:35 PST 2013


Al 18/01/13 21:32, En/na Andrej Mitrovic ha escrit:
> On 1/18/13, nazriel <spam at dzfl.pl> wrote:
>> Show me a working solution to question from first post.
>>
>> "How to use existing static D library *WITHOUT* using .DI files".
>> You can't edit library itself, so adding extern(C) to functions
>> won't work.
>> You can't create .DI file - which is the main question from first
>> post.
> 
> That formulation makes no sense. If it's not his library the provider
> will either give the .d files or autogenerated/handwritten .di files.
> He won't just get a naked static library without supporting files.
> 
> And if he controls the library, he will either have to autogenerate
> .di files, or handwrite them. Even if he uses extern(C) he will still
> have to provide a .d file with all extern(C) functions and types.
> 

Thank you for your answer.
What's the sense for extern(D)? and in which case is useful.

-- 
Jordi Sayol


More information about the Digitalmars-d-learn mailing list