[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 17:31:33
|
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
|