Seabass
2010-01-23 18:54:02 UTC
Hey guys,
I'm trying to break my projects up a bit so I'm not rebuilding code
that hasn't been changed. So i split one of my static lib projects
into two. Lets call them LibA and LibB. Then there is my main project
which makes use of LibB. LibA depends on LibB and the main project
depends on LibB. Pretty straight-forward.
So now I am trying to hook them all up. When i build LibB, everything
is fine, it can find LibA and it all checks out. The problem comes
when I try to build the main project. The header of LibB has
references to classes in LibA, so when i build the main project, it
starts asking for LibA or if I remove the include to LibA, it can't
parse the classes since it doesn't know what they are. This may be a
"by design" thing, but it seems illogical to have to include LibA in
the main project when in fact LibB is already doing that.
Is there anyway around this? Perhaps I'm setting up my library headers
wrong?
Thanks!
I'm trying to break my projects up a bit so I'm not rebuilding code
that hasn't been changed. So i split one of my static lib projects
into two. Lets call them LibA and LibB. Then there is my main project
which makes use of LibB. LibA depends on LibB and the main project
depends on LibB. Pretty straight-forward.
So now I am trying to hook them all up. When i build LibB, everything
is fine, it can find LibA and it all checks out. The problem comes
when I try to build the main project. The header of LibB has
references to classes in LibA, so when i build the main project, it
starts asking for LibA or if I remove the include to LibA, it can't
parse the classes since it doesn't know what they are. This may be a
"by design" thing, but it seems illogical to have to include LibA in
the main project when in fact LibB is already doing that.
Is there anyway around this? Perhaps I'm setting up my library headers
wrong?
Thanks!