Bochs/bochs-testing/plugin-test/test4-interdep/README
Bryce Denney 059b59c98e - in bochs-testing area, check in shared library tests that I wrote while
trying to get plugins working on Cygwin.

Added Files:
	Makefile
	test1-static/*
	test2-dynamic/*
	test3-twomodules/*
	test4-interdep/*
2002-10-11 14:51:27 +00:00

18 lines
639 B
Plaintext

test4-interdep
Can one module reference objects in another module? Yes.
module1 exports module_name and operate(int,int).
module2 exports n_operations and operation_occurred().
uselib.cc uses symbols and functions from both modules.
Module1 calls operation_occurred() in module2.
To do this, module2 must be built first. Then module1 is linked
against module2 so that the missing symbols are available. Then,
uselib is linked against both.
This shows that we can chain libraries. I haven't seen any way to
resolve a circular dependency, where mod1 depends on mod2 and vice
versa, in win32 DLLs. Probably those are not supported.