I have a bunch of files that are compiled into a library associated with various projects, but most projects require a relatively small part. Therefore, I need to break it into layers.
To do this correctly, I would like to verify that the lower layers are not dependent on anything in the higher ones. On Linux, I would just split the libraries and pass the -Wl,--no-undefined link by reference. But I need to do this on Windows, where dynamic libraries need to be explicitly exported, and the sources are not ready for this.
I can also prepare unit test for each layer, and during binding with it undefined characters will appear. However, I only have unit tests for a small subset of classes, and even if I add them, they still will not catch if something is added but not verified.
So, is there any other way to verify that no symbols are needed for the static library except from the specified set of other libraries? I can use either Visual C ++ 9.0 (2008) or MinGW.
source share