dependencies between dll's in visual studio

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,166
Messages
2,570,901
Members
47,442
Latest member
KevinLocki

Latest Threads

Top