Linking with a static library

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve (swoodberry_at_foursticks.com)
Date: 11/09/04


Date: Mon, 8 Nov 2004 22:36:08 -0800

You will probably find it much easier if you use the
Visual C++ IDE to build your projects! The compiler and
linker are the same as the ddk (apparently), you just
need to configure project setting so that the right
includes are included and the right libs linked.

I use Visual C++ to build all my drivers - much easier
than using the ddk build - particularly when you want to
start linking in static libraries, etc. If you need a
blank project that is configured for kernel mode I can
help.

Steve.

>-----Original Message-----
>I've got a simplle static library and I want to link the
lib file in with
>the driver. What do I put in the sources file?
TARGETLIBS seems to be only
>for linking with dll stubs, or should that work?
>
>error LNK2019: unresolved external symbol
_GetModuleExportAddress@8
>referenced in function _ImageLoadNotify@12
>
>
>
>.
>



Relevant Pages

  • Re: VC6 + Dinkumware fixes OK for basic STL usage?
    ... sure, after all these months, what's in the V-express package. ... Since I use static linking, I didn't worry about it, assuming that there were not corresponding static libraries in the static linking case. ... Microsoft has never published a way to rebuild the DLLs ...
    (microsoft.public.vc.stl)
  • Re: [HELP] Re: Any solution to "error LNK2019: unresolved external symbol __imp__RtlInitUnicodeStr
    ... Many of the 'funny' drivers have absurd restrictions in what they can use. ... during linking. ... Omer Boyaci wrote: ... OBJECT_ATTRIBUTES myObjectAttr; ...
    (microsoft.public.development.device.drivers)
  • undefined symbol error when linking
    ... I am getting an undefined symbol error when linking a program. ... It is my understanding that when linking with static libraries ...
    (comp.unix.solaris)
  • Re: Change of the Dlls size with installing VisualStudio ServicePack6
    ... > OP is linking with some static libraries, ... Without knowing what all the built dll uses or how it is being ... general characterizations that certain builds of Visual Studio generate ...
    (microsoft.public.vc.mfc)
  • Re: static dll linking
    ... A DLL, by definition, uses only dynamic linking. ... you need a lib file; Delphi neither generates nor uses lib files. ... But load-time dynamic linking is also called "static linking", ...
    (alt.comp.lang.borland-delphi)