Search code examples
c++visual-studiovisual-studio-2005

Link problem between projects in same solution (Exe depends on Lib)


I have one solution with several projects. Say ProjectA is the one that will produce the exe file, and ProjectB simply produces a .lib file. I have checked that ProjectA depends on ProjectB, so that ProjectB will always compile before ProjectA.

When I compile ProjectB everything goes fine. But if I compile ProjectA I get linking errors saying that some method of B does not exist. I have checked, and it does exist.

¿What is going on?

Thanks for your help!


Solution

  • Project Properties, Linker, General: Set "Link Library Dependencies" to Yes.