Using Linux C code and header files to compile a Windows DLL
- by df382
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.