delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/12/07:31:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36E90969.DA92D620@inria.fr>
Date: Fri, 12 Mar 1999 13:32:41 +0100
From: Chris <Christine DOT Pourcelot AT inria DOT fr>
Organization: INRIA
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>,
"'wxwin-developers'" <wxwin-developers AT wx DOT dent DOT med DOT uni-muenchen DOT de>,
cygwin <cygwin AT sourceware DOT cygnus DOT com>,
John Storey <jstorey AT vitria DOT com>,
Francois ROMIEU <romieu AT mail DOT cogenit DOT fr>,
Pat <pcotecolisson AT fciconnect DOT com>
Subject: Building wxWindows/Mingw executables using Cygwin32

Hi,

I finally did it :-)

Thank you very much Mumit for helping, and thanks to other peoples who
tried to help.

My last mistake was : I've forgotten to recompile wxWindows ... 

So, this is what I did (with Mumit's advices and help)

1) went to www.delorie.com/howto/cygwin/mno-cygwin-howto.html and read
the manual 

2) got the extra library package from
ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/egcs-1.1.1/egcs-1.1.1-mingw-libs.tar.gz 

3) unpacked and installed it in usr/local/mingw-libs (for example)

4) got _G_config.h from Mumit and put it in wx/src/mingw (I created that
directory)

5) changed wx/src/make95.env :
  a) CC = c++ -mno-cygwin
  b) OPTIONS= -D__EGCS__ -mno-cygwin 
  c) WINLIBS=-lwinspool -lwinmm -lcomctl32 -lctl3d32 -lodbc32 
  d) INC = -I$(WXINC) -I$(WXDIR)/src/png
-I$(WXDIR)/include/wx/msw/gnuwin32 -I$(WXDIR)/src/zlib
-I$(WXDIR)/src/mingw $(EXTRAINC) $(COMPPATHS)
  e) LDFLAGS = $(WINDOWSLDFLAGS) -L$(WXDIR)/lib -L/usr/local/mingw-libs
$(EXTRALDFLAGS)

6) recompile wxWindows

7) recompile my sources

It runs perfectly now, and I would add all this resolved the warning I
had without -mno-cygwin : 
/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: warning: cannot find
entry symbol _WinMainCRTStartup; defaulting to 00401000

So, thank you everybody. I hope this experience will help those who want
to build mingw executables with Cygwin32.

Regards,
Christine

-- 
Christine Pourcelot
Stagiaire projet CODES
INRIA ROCQUENCOURT

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019