C# calling GNU static library functions

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
 
M

mikeb

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.
 

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

Top