Test for classes in an .exe

Dec 6, 2009 at 6:35 PM

Hi all,


i have been trying to use WinUnit on classes used in a project released as a number of exe-files.

In "Visual Studio->ProjectProperties->Linker->Addidtional Dependencies" i added the full paths to the ClassName.obj - files (which works), but i would prefer to name only the path and not every single class.

How to?


Our App is split up in a number >10 common libraries (no problem testing these) an five executables.


Can anyone give me a hint how to move on from here?



Niels Cederstrøm, Kiel, Germany

Jan 20, 2010 at 1:40 PM


I want to make sure that I understand your issue. Suppose that you name only the path, how would you expect that the compiler and WinUnit know to which object file to link to ?

By explicity telling the object file to link to, you are adding a reference to that object file into your WinUnit DLL, so it is needed in order to determine the dependencies. But if you have 5 executables why do you explicity link to their classess instead of linking to the .lib that each .exe generates. In that way you will have to name as much as 5 .lib names.

Does this make sense ?