I have an application that uses the libMPSSE DLL as delivered by FTDI from which I obviously have no sourcecode (thus I have to use it as-is). So far so good, this all works with a bit of fiddling around.
Part of the application though consists of a bunch of modules that I'ld like to re-use and distribute as another DLL, let's call it "mylib.dll". The reason for this is that it must be able to call them from a C# program.
The problem is the functions in mylib call functions from libMPSSE. When trying to build mylib, I get errors from POLINK that it cannot resolve the symbols from libMPSSE.
I tried everything I could think of, added a .def file that defines the MPSSE functions, tried linking in the .lib and .a files as provided by FTDI but I can't get this to build a valid DLL.
So in short: does anyone have an example showing how to solve this? Or good documentation on this?