I've generated a static library and this generates .obj and .lib files. As I
understood it, the .Lib is used in identifying what the library contains?
however, it seems rather large and therefore I guess it IS the library. What
purpose therefore are the obj files?

So I guess my first question is - what is a "static library"

The next one, how does this differ from a DLL?

TO use the static library, I imagined that I would just ensure the C++
Directories setting includes the directory that holds the .LIB file? This
doesn't seem to work!

Any guidance will be greatly appreciated.

Thanks

John

--
---
If you need to reply personally, append "text" to the domain name in my
email adr.
Thanks

Re: how do you reference a static library? by Frank

Frank
Wed May 12 17:09:15 CDT 2004

"jr" <johnr@tele.co.uk> wrote in message
news:c7u2ql$3gs$1@newsg3.svr.pol.co.uk...
> I've generated a static library and this generates .obj and .lib files. As
I
> understood it, the .Lib is used in identifying what the library contains?
> however, it seems rather large and therefore I guess it IS the library.
What
> purpose therefore are the obj files?
>
> So I guess my first question is - what is a "static library"

A static library is a collection of compiled code that get's pulled into
projects that link to it. Not all code is pulled into the project, only
code that is referenced.

>
> The next one, how does this differ from a DLL?

DLLs are also a collection of compiled code. The main difference is the
project linked against a DLLs import library only maintains entry point
pointers and when needed the DLL supplies the requested entry point.

>
> TO use the static library, I imagined that I would just ensure the C++
> Directories setting includes the directory that holds the .LIB file? This
> doesn't seem to work!

You must also add the name of the library on the link tab of the project
settings.

--
Frank


>
> Any guidance will be greatly appreciated.
>
> Thanks
>
> John
>
> --
> ---
> If you need to reply personally, append "text" to the domain name in my
> email adr.
> Thanks
>
>