VC++ 7.1

In a project's property pages, do all libs specified in Linker/Input
actually get linked into the app in all cases, or do only those that are
actually used get linked?

Thanks,
Dave

Re: Do specified libraries always get linked? by Jochen

Jochen
Mon Feb 06 14:03:33 CST 2006

Hi Dave!

> In a project's property pages, do all libs specified in Linker/Input
> actually get linked into the app in all cases, or do only those that are
> actually used get linked?

Normally the linker only links these symbols which are referenced. All
other will be thrown away...

But you can enable, that unreferenced data should be kept:
/OPT:NOREF
=> "Project|Settings|Linker|Optimization|References"

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/