Using Linux C code and header files to compile a Windows DLL

Posted by df382 on Stack Overflow See other posts from Stack Overflow or by df382
Published on 2012-11-03T16:43:27Z Indexed on 2012/11/03 17:01 UTC
Read the original article Hit count: 169

Filed under:
|
|
|
|

I would like to know if in general it is possible to create a C++ DLL with Visual C++ 2010 starting from C code and the header files I find in a Linux distribution.

Theoretically, if I take a piece of C code (that includes different header files) from Linux and I find in the Linux file system all the header files needed for the linkage of the project, will I be able to successfully compile the project in Windows with Visual C++ 2010?

Are there some examples or a tutorial for doing this?

After compiling a DLL, I would like to use it in a C# application, which I will run under Linux with Mono.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c