Re: [Dev-C++] Fw: Dev-C++ looking for MSVCRT.DLL
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel D. <dan...@gm...> - 2007-01-31 21:13:25
|
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 12:31:18 PM > avast! - copyright (c) 1988-2007 ALWIL Software. > http://www.avast.com > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |