DLLs and friends

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Nov 24 12:08:09 PST 2012


__declspec(dllimport): This symbol exists somewhere else. I [the 
linker] am going to try to pull it in from some library at 
[runtime? link time? I [ellery] don't remember]

__declspec(dllexport): This symbol exists in this image. I [the 
linker] am going to make it available to other dlls and 
executables if they want to use it.

            C                    D
__declspec(dllimport) <-> export [apparently]
__declspec(dllexport) <-> extern export **


** with dmd on linux, apparently __declspec(dllexport) <-> 
[nothing]. Noticed this when trying to link to the python c api. 
But it could just be python isn't using dllexport.






More information about the Digitalmars-d mailing list