DLL's that depend on each other

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi all. I have a large DLL that I thought was becoming unwieldy and I
decided to try splitting it into two separate libraries. I picked a
set of files that relate to one aspect of the operations and created a
new library using just them. This resulted in reducing the size of
the original library by 1/3 and was quite satisfactory. The original
library is my 'main' DLL and it does not depend on any other library
(other than system libs). The new lib was set to depend on the
original and that worked nicely.

However when I went back and removed the moved files from the original
lib, there were a lot of unresolved references. Now comes the
problem. I cannot set the original lib to depend on the new one
because it creates a circular dependency. Understandable. So I got
around that by just adding the new library to the linker input. Well
that compiles and works, but it also creates a circular dependency in
that every time I rebuild my project the two libraries are both
relinked and so is every other project in the solution that depends
upon them.

This is clearly unnaceptable, so what can I do. Am I forced in this
situation to put the libraries back into one to eliminate this cross
dependency, or is there some other way to handle this? I have already
examined the code and determined that there is no way to split the
library in any usable way that would not result in the cross
dependency.

Thanks, Russ
.



Relevant Pages

  • Re: mex linker fails
    ... does this mean that the .lib is actually using the .dll? ... Try using "dependency walker" to look at the DLL. ... Matlab supported compiler for windows, so it's not straightforward to set up mex ... bash-3.1$ # Create import libraries ...
    (comp.soft-sys.matlab)
  • Re: Getting started on the HP49g+
    ... either the original HP extable lib ... extable2 lib from http://www.hpcalc.org/details.php?id=3940. ... ask again if you have any problem installing libraries. ... compile the string with ASM (listed in the development lib menu, ...
    (comp.sys.hp48)
  • Re: How to "import" an interface into a module w/o `include?
    ... libs but not one file per lib. ... do you mean that you have used 'vlog' to compile your source files ... into ModelSim libraries of those names? ... could possibly know it's an interface). ...
    (comp.lang.verilog)
  • Re: RosAsm is a broken pile of crap
    ... armed with a macro assembler that's ... Even turbo pascal supported libraries (in the form of .tpu ... > Either the Lib is open source and free reuse. ... To use it in RosAsm, you'd have to convert it all to assembly. ...
    (alt.lang.asm)
  • Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586
    ... all shared libraries too. ... matched set for the right CPU & release etc. ... But no reason we coudn't have an infrastructure of lib ... It would prevent gcc -march=586 silently failing, ...
    (freebsd-hackers)