Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW
Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW [message #759382] Mon, 28 November 2011 09:08 Go to next message
Eclipse UserFriend
Hello to all.

I have a Visual C++ 6.0 static library Project. It uses the MFC library and to
compile the project I have to set the compiler-option /MD (because it's a
multithreaded Dll projekt)
For the preprocessor you have to set the flag "_AFXDLL".

Now I createt a Eclipse+CDT+MinGW static library project with the same settings.
But I can't set the flag /MD for the gnu compiler. Thats why I get the error
Message:

C:\Program Files\Microsoft Visual Studio\VC98\MFC\Include/afxver_.h:130:3:
error: #error Please use the /MD switch for _AFXDLL builds

Can anybody help me out please? Smile

greetings
blackxx
Re: Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW [message #760182 is a reply to message #759382] Thu, 01 December 2011 09:52 Go to previous messageGo to next message
Eclipse UserFriend
hmmmm... seems I'm the only one with this problem :'( ^^
Re: Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW [message #760611 is a reply to message #760182] Sat, 03 December 2011 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Suppose there is no way to use MFC with MinGW compiler (different ABI), only MSVC (and probably Intel) compiler can be used.
Re: Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW [message #760845 is a reply to message #760182] Mon, 05 December 2011 07:34 Go to previous messageGo to next message
Eclipse UserFriend
MinGW and MFC does not work.
http://jrfonseca.planetaclix.pt/projects/gnu-win32/documentation/porting/index.html
http://www.cs.colorado.edu/~main/cs1300/doc/mingwfaq.html#guisapplicationframeworksuserinterfaces
Re: Compiling a Visual C++ 6.0 Project with Eclipse+CDT+MinGW [message #760898 is a reply to message #760845] Mon, 05 December 2011 09:31 Go to previous message
Eclipse UserFriend
OK I see. Thank you guys very much for your help!!
Previous Topic:Delay after adding includes to recognize objects
Next Topic:Eclipse won't find MinGW Includes
Goto Forum:
  


Current Time: Wed Jul 30 18:48:31 EDT 2025

Powered by FUDForum. Page generated in 0.05206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top