public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mumit Khan <khan@xraylith.wisc.edu>
To: Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
Cc: Chris <Christine.Pourcelot@inria.fr>,
	cygwin <cygwin@sourceware.cygnus.com>,
	wxwin-developers <wxwin-developers@wx.dent.med.uni-muenchen.de>
Subject: RE: troubles while building wxWindows/C++ Mingw executables usin
Date: Thu, 11 Mar 1999 16:47:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.93.990311183823.28273C-100000@modi.xraylith.wisc.edu> (raw)
In-Reply-To: < XFMail.990310141736.zeitlin@dptmaths.ens-cachan.fr >

On Wed, 10 Mar 1999, Vadim Zeitlin wrote:

> 
>  There is no reason it shouldn't be possible. It would be interesting
> to hear whether you succeed with it finally and what had you to change
> to do it.
> 

It does work quite well, except for a few gotcha's:
  
  - you need the mingw version of _G_config.h, which is installed when
    you install the C++ runtime library. Unfortunately, my extra
    mingw libraries package for cygwin doesn't have it (oversight).

  - you have to make sure that *every* compile/link command uses the
    -mno-cygwin flag.

    Also, you *must* have mingw version of libm.a ... this is part of
    egcs-1.1.1-mingw-libs.tar.gz that I distribute.

  - need to fix the libraries that wxwin links in by default.
    Specifically, I believe you need to delete -loldnames, which should
    not have been there in the first place.

    I simply used "c++" as the driver (wxwin uses gcc) to avoid specifying
    -lstdc++ explicitly, and also specified the following in
    makeg95.env:
      
      CC = c++ -mno-cygwin
      OPTIONS= -D__EGCS__  -mno-cygwin #-D__MINGW32__
      WINLIBS= -lwinspool -lwinmm -lcomctl32 -lctl3d32 -lodbc32
    
    (note: I may have missed one or two win32 specific import libraries
    in WINLIBS, but most of the samples did build fine using above).

Since it works for me, it should work for others as well, especially given
that the machine I tested this on doesn't have anything different/special.

I hope Christine Pourcelot posts her experience here once she has things 
squared away.

This is of course for building mingw wxwin using Cygwin gcc; for native
Cygwin builds, it all works out of the box.

I will add this info to my howto on using -mno-cygwin ...

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Mumit Khan <khan@xraylith.wisc.edu>
To: Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
Cc: Chris <Christine.Pourcelot@inria.fr>,
	cygwin <cygwin@sourceware.cygnus.com>,
	wxwin-developers <wxwin-developers@wx.dent.med.uni-muenchen.de>
Subject: RE: troubles while building wxWindows/C++ Mingw executables usin
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.93.990311183823.28273C-100000@modi.xraylith.wisc.edu> (raw)
Message-ID: <19990331194500.TF9caaLDuoej03UO8t8G8bT6OIF2JTsvC73zrvVqKvM@z> (raw)
In-Reply-To: <XFMail.990310141736.zeitlin@dptmaths.ens-cachan.fr>

On Wed, 10 Mar 1999, Vadim Zeitlin wrote:

> 
>  There is no reason it shouldn't be possible. It would be interesting
> to hear whether you succeed with it finally and what had you to change
> to do it.
> 

It does work quite well, except for a few gotcha's:
  
  - you need the mingw version of _G_config.h, which is installed when
    you install the C++ runtime library. Unfortunately, my extra
    mingw libraries package for cygwin doesn't have it (oversight).

  - you have to make sure that *every* compile/link command uses the
    -mno-cygwin flag.

    Also, you *must* have mingw version of libm.a ... this is part of
    egcs-1.1.1-mingw-libs.tar.gz that I distribute.

  - need to fix the libraries that wxwin links in by default.
    Specifically, I believe you need to delete -loldnames, which should
    not have been there in the first place.

    I simply used "c++" as the driver (wxwin uses gcc) to avoid specifying
    -lstdc++ explicitly, and also specified the following in
    makeg95.env:
      
      CC = c++ -mno-cygwin
      OPTIONS= -D__EGCS__  -mno-cygwin #-D__MINGW32__
      WINLIBS= -lwinspool -lwinmm -lcomctl32 -lctl3d32 -lodbc32
    
    (note: I may have missed one or two win32 specific import libraries
    in WINLIBS, but most of the samples did build fine using above).

Since it works for me, it should work for others as well, especially given
that the machine I tested this on doesn't have anything different/special.

I hope Christine Pourcelot posts her experience here once she has things 
squared away.

This is of course for building mingw wxwin using Cygwin gcc; for native
Cygwin builds, it all works out of the box.

I will add this info to my howto on using -mno-cygwin ...

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


  parent reply	other threads:[~1999-03-11 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-10  1:46 troubles while building wxWindows/C++ Mingw executables using Cygwin Chris
     [not found] ` < 36E64070.944A6B90@inria.fr >
1999-03-10  5:17   ` troubles while building wxWindows/C++ Mingw executables usin Vadim Zeitlin
     [not found]     ` < XFMail.990310141736.zeitlin@dptmaths.ens-cachan.fr >
1999-03-11 16:47       ` Mumit Khan [this message]
1999-03-31 19:45         ` Mumit Khan
1999-03-31 19:45     ` Vadim Zeitlin
1999-03-10 11:18   ` troubles while building wxWindows/C++ Mingw executables using Cygwin Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Chris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.93.990311183823.28273C-100000@modi.xraylith.wisc.edu \
    --to=khan@xraylith.wisc.edu \
    --cc=Christine.Pourcelot@inria.fr \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=wxwin-developers@wx.dent.med.uni-muenchen.de \
    --cc=zeitlin@dptmaths.ens-cachan.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).