I build C++ DLL using MinGW and I want to use this DLL in visual studio application. But I get Linking Error. According to http://www.mingw.org/wiki/Interoperability_of_Libraries_Created_by_Different_Compiler_Brands this URL : " DLLs that are written in C++ work too, as long as you communicate with them only through a C interface declared with extern "C". If you do otherwise, you will probably get linker errors because different compilers mangle C++ names differently. "
So the problem seems to be with different name mangling used by different compilers. Is there a way by which MinGW could use same name mangling that is used by visual studio?