[llvm-dev] DllImport: How to specify the library to link to?

David Majnemer via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 16 11:07:30 PST 2016

You don't specify that at the LLVM layer.  Instead, the linker is told
which dll you want the import to resolve against by specifying a .lib file
as a linker input.

On Tue, Feb 16, 2016 at 11:00 AM, Alexander via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi,
> I am absolutely new to LLVM. Currently reading through documentation and
> the C-API (which i want to use). As i am working on Windows, i was curios
> on how to specify an import which links to a function exported by a dll.
> The DLLStorageClass seems to be the wy to go, this seems clear. But after
> declaring a function for import, how do i specify the DLL the function is
> included in?
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/4ade7cd6/attachment.html>

More information about the llvm-dev mailing list