Hi.
How do I use gcc to compile C code into a .dll file that can be used by my C# project?
The problem I am faced with is this: I have C code compiled with gcc. I tried making a new C++ project in visual studio (so that I can create a dll) and just copying the C code, but language extensions and void pointers prevented me from compiling. I tried compiling as C code and turning off Microsoft Language Extensions in my project properties, but that did not work.
So... I need to be able to access some functions from the C code (that compiles with gcc) in my C# project (MSVS). I think creating a .dll file out of the C code and then using that in my C# project would be easiest. How can I do this? If there is a better way to do it, what is it?
Thanks for any help.
How do I use gcc to compile C code into a .dll file that can be used by my C# project?
The problem I am faced with is this: I have C code compiled with gcc. I tried making a new C++ project in visual studio (so that I can create a dll) and just copying the C code, but language extensions and void pointers prevented me from compiling. I tried compiling as C code and turning off Microsoft Language Extensions in my project properties, but that did not work.
So... I need to be able to access some functions from the C code (that compiles with gcc) in my C# project (MSVS). I think creating a .dll file out of the C code and then using that in my C# project would be easiest. How can I do this? If there is a better way to do it, what is it?
Thanks for any help.
Comment