cairo(D) / x64 / unresolved externals / don't know why

Benjamin Thaut via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 11 10:46:01 PST 2016


Am 11.01.2016 um 18:27 schrieb Robert M. Münch:
>
>> Import symbols are symbols used for dll linking and start with "__imp_"
>
> Is this a DMD convention or a general one? Never heard about this.
>

This seems to be a general convetion on windows. All c++ compilers I've 
seen on windows so far emit so called import symbols using the "__imp_" 
prefix. Basically its just another level of indirection during a 
function call to be able to resolve function addresses at runtime, e.g. 
implement dynamic linking. Its kind of a implementation detail, so in 
theory you don't have to know about it. But it helps when reading linker 
errors. In case my talk gets accepted for dconf 2016 I'm going to cover 
this there in more detail.

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list