C# calling GNU static library functions

  • Thread starter Thread starter Ray Mitchell
  • Start date Start date
R

Ray Mitchell

Hello,

I have a C console application that I'd like to convert to
C# (Windows 2000). It currently calls some functions in a
GNU static library (.lib) so I've been compiling it with
GNU (for Windows) just to keep it simple. Is there a
reasonable way I can call these library functions from a
C# program. Details would be appreciated.

Thanks,
Ray Mitchell
 
Ray said:
Hello,

I have a C console application that I'd like to convert to
C# (Windows 2000). It currently calls some functions in a
GNU static library (.lib) so I've been compiling it with
GNU (for Windows) just to keep it simple. Is there a
reasonable way I can call these library functions from a
C# program. Details would be appreciated.

Create a DLL that wraps the functions in the static lib, then use
P/Invoke from C# to call the entrypoints in the DLL.
 
Back
Top