J
Joerg M. Colberg
My apologies if this is a trivial problem. I have been trying to solve
this for a few days now and I just can't get it done. Here's what I have. I
have a C++ project in VisualStudio.NET whose code relies on external C code
(GNU Scientific Library). That external code I added using
Configuration Properties->Linker->Input->Additional Dependencies
There, I specified two .lib files and the code compiles just fine. However,
when it generates the output dll's (the project is supposed to produce a
dll that is being used elseplace) the external code's dll's aren't copied
over. So I tried to the external code's dll's using "References" but that
just won't work (don't know why - the error message is non-descriptive). So
here's the question: How do I link those external libraries so that when
some other code wants to use the dll the external libraries' dll's get
copied over properly?
Should I, instead of doing the linking the way I do it, invoke the
code using dllImport? The important thing here is that the code compiles
and runs just fine the way I do it - the only problem is that the
external dlls don't get deployed properly. That's particularly bad for
the case where I use the C code inside a .NET web application: The
code won't run unless I copy the dlls by hand (hardly a solution for
a web application).
- Joerg Colberg
(e-mail address removed)
this for a few days now and I just can't get it done. Here's what I have. I
have a C++ project in VisualStudio.NET whose code relies on external C code
(GNU Scientific Library). That external code I added using
Configuration Properties->Linker->Input->Additional Dependencies
There, I specified two .lib files and the code compiles just fine. However,
when it generates the output dll's (the project is supposed to produce a
dll that is being used elseplace) the external code's dll's aren't copied
over. So I tried to the external code's dll's using "References" but that
just won't work (don't know why - the error message is non-descriptive). So
here's the question: How do I link those external libraries so that when
some other code wants to use the dll the external libraries' dll's get
copied over properly?
Should I, instead of doing the linking the way I do it, invoke the
code using dllImport? The important thing here is that the code compiles
and runs just fine the way I do it - the only problem is that the
external dlls don't get deployed properly. That's particularly bad for
the case where I use the C code inside a .NET web application: The
code won't run unless I copy the dlls by hand (hardly a solution for
a web application).
- Joerg Colberg
(e-mail address removed)