<> wrote in message
news: oups.com...
:> Start by creating two functions foo and bar that depend on each
other:
: >
: > Now compile these files separately: you have circularly dependent
object
: > files.
: >
: > Create a static library from each: you have circularly dependent
static
: > libraries.
:
: The simplistic version you describe here, isn't possible. As soon as
: you try to link either one of these seperate object files, you will
get
: a linker error. As another poster pointed out, between two libs 'A'
: and 'B', you'd have to make some kind of "3rd party" stub library -
: such as 'BStub', and have 'A' link against that.
:
: But using that kind of approach hearkens back to using something like
: IDL (which, when compiled, produces lib stubs - at least it does in
the
: case of CORBA). As such, it is actually "difficult" to produce a
: circular dependency, people don't "accidentally" use IDL in scenarios
: like this...
What you are facing is just a limitation of the tool chain you are
using (or of your understanding of it).
There is no need for such a thing as IDL or Corba. In your case it
might be enough to comment-out the contents of the function body
of either library to make a first compile. Then uncomment the code,
rebuild that library, and you're done.
Again, as others pointed out, the specifics of how to do this on
the platform you are using are out of topic here.
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form