From: Gordon W. <gw...@pu...> - 2010-08-29 11:45:39
|
Hi, I'm trying to build a DLL file with MinGW for a program compiled with Visual C++ 2008 Express Edition. Everything's building fine, although when running I get all kinds of memory corruption errors which I don't if I compile the DLL with Visual C++. I believe this is due to a mismatch in runtime libraries - I can reproduce the same kind of errors when compiling everything with Visual C++ by changing the runtime library from Multi-threaded DLL (/MD) to normal Multi-threaded (/MT). Is there a way of asking MinGW to use the equivalent of '/MD' (Multi-Threaded DLL) in Visual C++ 2008? Or are my problems because I'm using two separate versions of the DLL (msvcr80/msvcr90)? Is there some way of changing either what MinGW uses, or what Visual C++ uses, so they are the same? thanks for your help! - Gordon |