circular dependencies between dlls with visual studio

前端 未结 9 1137
忘掉有多难
忘掉有多难 2020-12-15 08:00

I have a circular dependency between two functions. I would like each of these functions to reside in its own dll. Is it possible to build this with visual studio?



        
9条回答
  •  半阙折子戏
    2020-12-15 08:27

    It is not possible to do cleanly. Because they both depend on each other, if A changes, then B must be recompiled. Because B was recompiled, it has changed and A needs to be recompiled and so on.

    That is part of the reason circular dependencies are bad and whether you want to or not, you cannot leave that out of the discussion.

提交回复
热议问题