Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <170350-220028422145914150@M2W085.mail2web.com> X-EM-Version: 6, 0, 0, 3 X-EM-Registration: #00E0641810D91B008120 X-Priority: 3 Reply-To: lhall AT rfk DOT com X-Originating-IP: 209.113.174.244 From: "lhall AT pop DOT ma DOT ultranet DOT com" To: serj AT hea DOT iki DOT rssi DOT ru, cygwin AT cygwin DOT com Subject: RE: using MFC with cygwin Date: Thu, 22 Aug 2002 10:59:14 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-OriginalArrivalTime: 22 Aug 2002 14:59:14.0314 (UTC) FILETIME=[7AEB36A0:01C249EC] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7MExKq32388 No one has ported MFC to any compiler besides VC++. And while it could be done, the benefits are minimal since the Microsoft license would prevent you from distributing the result. I'm not sure what problems you're refering to with regard to VC++ linking against Cygwin-made DLLs/LIBs. This should be possible so long as you take some care in not mixing C runtimes. Larry Original Message: ----------------- From: serj AT hea DOT iki DOT rssi DOT ru Date: Thu, 22 Aug 2002 17:29:02 +0400 To: cygwin AT cygwin DOT com Subject: using MFC with cygwin Hello, I have unix console application. I want to use this application as a back-end for windows GUI application. This GUI application is written using MFC. I find out that there is no way to use cygwin *.o objects and *.dll libraries in VC++ projects because of gcc and msvc compiler uncompatibilities. So i cannot use cygwin+gcc to compile my back-end and msvc to compile GUI front-end. Am i right? I cannot use msvc to compile entire project. Can i compile MFC GUI application using cygwin+gcc? I tried to do it but i have some problems: Compiler cannot find MFC headers and some win32 headers like tchar.h. I copy tchar.h to cygwin's win32 include directory and use gcc with -I option. But i still have problems: /cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: variable or field `__fastca ll' declared void /cygdrive/c/visualstudio/vc98/mfc/include/afx.h:621: parse error before `(' /cygdrive/c/visualstudio/vc98/mfc/include/afx.h:1523: confused by earlier errors , bailing out So can i combine cygwin API functions with MFC? -- Best regards, Serj mailto:serj AT hea DOT iki DOT rssi DOT ru -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/