Tech Support > Microsoft Windows > Development Resources > How to ignore library in Object/library modules:
How to ignore library in Object/library modules:
Posted by Xuan Bai on August 18th, 2004


Hello, All,

I am working on a large program which includes around 100 projects
with Visual C++ 6.0 and XP. Among these 100 projects, sometimes, more
than 50 need to link to other library files, i.e a.lib and b.lib. So
I added a.lib and b.lib in link-> Object/library modules.

But sometimes, I do not need to link to a.lib and b.lib for these 50
projects. So I removed the path for a.lib and b.lib through tools->
options -> directory. When I compile these projects, the compiler
still searches for a.lib and b.lib. Must I remove a.lib and b.lib
from Object/library modules to keep the compiler from linking to these
2 libraries? It is kind of trouble to remove these 2 libraries from
50 projects.

My questions is whether there are any better ways to link to a.lib and
b.lib when I need them and ignore these two libraries when I do not
want to link them without modifiy these 50 projects one by one?

Thanks!

Xuan Bai