I am getting a LNK2005 error for reasons I do not understand.
I have a very simple test case that exhibits this problem.
One project implements a standalone class, producing a header
file and a static .lib. No MFC. No ATL. As simple as it gets.
A second project (MFC Dialog App) instantiates an object of
the class from the first project. When building the second
project I get:
test_class_test error LNK2005: "public: __thiscall
test_class.lib(TestClass.obj)
Why is this being defined in the second project?
I can produce an executable from the second project by using
the "/FORCE:MULTIPLE" linker option, but that does not sit
well with me. There should not be "multiple".
I want to produce reusable standalone libs (project one) for different
apps (project two). What settings should I use for projects one and
two?
--
Mike Loftus (real email address does not contain error)
Ford Scientific Research Lab
Expressing my personal opinions, not necessarily those of Ford Motor Co.