K
krissteegmans
I have the following two functions:
void foo(int i)
{
if (i > 0)
bar(i - 1);
}
void bar(int i)
{
if (i > 0)
foo(i - 1);
}
I want both functions to reside in another shared library (foo.dll and
bar.dll). Note that this is perfectly possible, since they depend only
on the signature of the other function. I managed to get the thing
compiled by declaring two projects in my solution. I have to compile
twice however and change the dependencies for each compilation run to
get both dll's compiled. Is there a way to do this cleanly?
void foo(int i)
{
if (i > 0)
bar(i - 1);
}
void bar(int i)
{
if (i > 0)
foo(i - 1);
}
I want both functions to reside in another shared library (foo.dll and
bar.dll). Note that this is perfectly possible, since they depend only
on the signature of the other function. I managed to get the thing
compiled by declaring two projects in my solution. I have to compile
twice however and change the dependencies for each compilation run to
get both dll's compiled. Is there a way to do this cleanly?