Microsoft Visual Studio 2012 C ++ Circular Reference

I have a question to ask. Is it possible for projects to refer to each other with the same solution?

For example, both projects A and B have their own exported functions. Project A refers to references to Project B and Project B Project A. Both projects are required to access exported functions from each other.

Technically, is this possible?

+4
source share
2 answers

Technically, this is possible, but he has problems.

When you create 2 DLLs, the DLL requires the lib file from B, the B requires the lib file from A.

: A B, B A. funcA1 funcA2, DLL A, B B.lib. B.lib, A B B. Circular Reference .

, lib , . , , DLL.

+1

, . A B , - , .

+1

Source: https://habr.com/ru/post/1568633/


All Articles