Re: [Dev-C++] Fw: Dev-C++ looking for MSVCRT.DLL
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: afpTeam <af...@sb...> - 2007-01-31 21:41:14
|
----- Original Message ----- From: "Steven Carter" <ste...@gm...> To: "Daniel D." <Dan...@gm...> Cc: <dev...@li...> Sent: Wednesday, January 31, 2007 4:27 PM Subject: Re: [Dev-C++] Fw: Dev-C++ looking for MSVCRT.DLL > 1. I've done really small things with Borland's IDE and MFC without > issue so MinGW/DevC++ should be little different as long as the libs > are there. Do you have a Windows Platform SDK? Any MFC libs should > be in that wouldn't they? (Okay, maybe not modern SDKs but in > deprecated ones. I'm sure there must be a repository somewhere.) I have MFC 4.n libs, but MingW seems to be choking on using them, or I don't know how to structure the compile to integrate it properly. Yes, I have the SDK as well, but not at 6.n and these are no longer supported to just download, as far as I could find. > > 2. Ideally that might be the case. Life isn't perfect. > > 3. For my part I'm stuck between the corporate world where VS rules > and my dream of writing cross platform apps that the entire world, > including Microserfs can enjoy. Ditto: :) Thanks. Mike > On 31/01/07, Daniel D. <dan...@gm...> wrote: >> Some points : >> >> 1. being a MS technology, MFC will scarcely help beyond Windows and VS. >> 2. you may probably have to rewrite the project, so that to make no use >> of >> the MFC :( >> 3. just wonder why would you use a different IDE anyway, as long as your >> system remains Windows >> >> >> >> >> DD >> /***************************************** >> these are just my personal opinions and thoughts >> *****************************************/ >> ----- Original Message ----- >> From: "afpTeam" <af...@sb...> >> To: <dev...@li...> >> Sent: Wednesday, January 31, 2007 7:31 PM >> Subject: [Dev-C++] Fw: Dev-C++ looking for MSVCRT.DLL >> >> >> > Hi list, >> > >> > I'm trying to build a pre-existing VS C++ 6.0 project in the current >> > 4.9.9.2 >> > MingW Dev-C++ IDE and sadly for starters, I only have 4.nn MFC libs on >> > board my XP system. >> > >> > Dev-C++ imported the solution/project. >> > I pointed the project includes directory at the MFC includes directory. >> > >> > The IDE identified the following macros for the project: >> > >> > Compiler: >> > -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_AFXDLL >> > >> > C++ compiler: >> > -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_AFXDLL >> > >> > Linker: (is empty) >> > >> > When I run compile, I get the following errors: >> > >> > ////////////////////// >> > In file included from C:/Devel_all/MSDEV/mfc/include/afx.h:27, >> > from C:/Devel_all/MSDEV/mfc/include/afxwin.h:19, >> > from dialogs/..\stdafx.h:10, >> > from dialogs/MailSendDlg.cpp:7: >> > C:/Devel_all/MSDEV/mfc/include/afxver_.h:128:3: #error Please use >> > the >> > /MD switch for _AFXDLL builds >> > C:/Devel_all/MSDEV/mfc/include/afxver_.h:133:3: #error Please use >> > the >> > /MD switch (multithreaded DLL C-runtime) >> > ////////////////////// >> > >> > When I follow them out I get... >> > >> > MailSendDlg.cpp says: #include "..\stdafx.h" >> > stdafx.h:10 says #include <afxwin.h> (MFC core) >> > afxwin.h:19 says #include <afx.h> >> > >> > afxver_.h 128 says >> > #if defined(_AFXDLL) && !defined(_DLL) >> > #error Please use the /MD switch for _AFXDLL builds >> > #endif >> > >> > afxver_.h 128 says >> > #ifndef _MAC >> > #if defined(_AFXDLL) && !defined(_MT) >> > #error Please use the /MD switch (multithreaded DLL C-runtime) >> > #endif >> > #endif >> > >> > It seems a little odd that the compiler is sending back a response >> > related >> > to "ifndef _MAC" so perhaps I have to find a way to tell the compiler >> > to >> > ignore this one? >> > >> > Apparently then I need to tell gcc to compile and link in MSVCRT.DLL to >> > support threading, either static or at runtime? >> > >> > Admittedly this is a lack of familiarity on my part in how to tell >> > Dev-C++ >> > and GCC to make this inclusion. >> > >> > So what is the best way to have Dev-C++ tell the comipler to manage >> > this? >> > >> > Thanks, >> > >> > Mike >> > > --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 000709-1, 01/31/2007 Tested on: 1/31/2007 4:40:56 PM avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com |