This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dynamically linked libraries


The linker not generating an import library indicates that the DLL module doesn't have any exported symbols.
Is this because you aren't using __declspec__(dllimport)/__declspec__(dllexport)?


While you don't have to use an import library (static linking to the module),
I believe one needs to be generated before you can hope to use the module by dynamically linking to it at runtime.


Christopher Faylor wrote:
On Sun, May 22, 2005 at 07:45:08PM -0700, Matthew Vanderschaaf wrote:

I'm in Windows trying to use a DLL with a program.  I don't have an
import library, and I can't find any information on how to use it
without one.  Any information that you may provide on this will help.


Just include the full path to the DLL on the link command line.

cgf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]