Re: DLL and external references
From: alias.name (alias.name_at_gmail.com)
Date: 07/15/04
- Next message: alias.name: "Re: DLL and external references"
- Previous message: William DePalo [MVP VC++]: "Re: DLL and external references"
- In reply to: Victor Bazarov: "Re: DLL and external references"
- Next in thread: Victor Bazarov: "Re: DLL and external references"
- Reply: Victor Bazarov: "Re: DLL and external references"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Jul 2004 20:08:36 GMT
Thank you, I was trying mimic the shared library behavior from Unix, but
since DLL are essentially EXE's and not just shared objects since it won't
work for my purpose.
A little more description of what I was trying to do:
I was trying to convert a static library into a DLL. The static library is
used to build an application. The "static library" uses functions from some
other static libraries. So to convert just that static library to a DLL I
would essentially have to resolve all external calls, which gets quite
involved and intricate and creates a huge DLL (the original EXE, almost).
Is my understanding correct?
Victor Bazarov <v.Abazarov@comAcast.net> wrote in
news:eWauhnpaEHA.3892@TK2MSFTNGP10.phx.gbl:
>
> Not sure I understand this question. An EXE is essentially a DLL.
> So, when a DLL is built, all external references need to be resolved.
> If the function uses static binding (comes from a static library),
> the library has to be supplied at the time of linking. If the symbol
> (function) uses dynamic binding (comes from a DLL), the _import_
> library needs to be supplied at the time of linking.
>
> Basically, there is no difference in linking a DLL or an EXE. The
> latter doesn't produce the import lib (usually), and has a different
> file extension. The inner format and ways to resolve symbols are
> essentially the same.
>
> Victor
- Next message: alias.name: "Re: DLL and external references"
- Previous message: William DePalo [MVP VC++]: "Re: DLL and external references"
- In reply to: Victor Bazarov: "Re: DLL and external references"
- Next in thread: Victor Bazarov: "Re: DLL and external references"
- Reply: Victor Bazarov: "Re: DLL and external references"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|