From: Greg C. <gch...@sb...> - 2010-08-29 17:27:31
|
On 2010-08-29 11:45Z, Gordon Williams wrote: > 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)? I would guess it's the latter. > Is there some > way of changing either what MinGW uses, or what Visual C++ uses, so they > are the same? Try a search such as this: http://search.gmane.org/?query=MSVCR80.DLL&group=gmane.comp.gnu.mingw* |