project setup with dll's

1 view
Skip to first unread message

krisst...@gmail.com

unread,
Dec 15, 2008, 3:23:39 AM12/15/08
to Visual C++ Lovers
I have the following system (this is a simplified version):

void foo(int i)
{
if (i > 0)
bar(i - 1);
}

void bar(int i)
{
if (i > 0)
foo(i - 1);
}

int main()
{
foo(10);
}

Now I want foo and bar in a separate dll (foo.dll and bar.dll). Both
should be loaded by a main.exe. I cannot configure my project in such
a way that it compiles this in one go. I can create both dll's and the
executable by changing the dependencies and doing multiple compilation
runs.

Is there a way to do this in a clean way?
Reply all
Reply to author
Forward
0 new messages