I got question on linking particularly in msvc6.
Lets say I have the winmain in the main.cpp ->main.obj
I have a foo class=>foo.obj
and
foobar class->foobar.obj

In main i only have an instance of foo class.
Basically I want to compile both classes but only link foo.obj.
So is there a way to tell the linker "Hey if theres no instances of class foobar, dont link it in"??


Thanks