This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mem allocation / heap_chunk

On Fri, 28 Feb 2003, Christopher Faylor wrote:

> On Fri, Feb 28, 2003 at 12:32:08PM -0500, Igor Pechtchanski wrote:
> >On Fri, 28 Feb 2003, Christopher Faylor wrote:
> >
> >> I wonder if regtool will just compile OOB with -mno-cygwin.  Apologies
> >> if that was suggested, too.
> >
> >Nope, it needs getopt...
> So does cygcheck.  cygcheck isn't a cygwin program.
> cgf

Oops! *blush*

regtool does build with -mno-cygwin.  The build commands I used are below
(not necessarily the best, just ripped out the cygwin part and made it use
mingw headers/libraries; the /usr/include part is for getopt.h):

 c++ -c -nostdinc++ -nostdinc -mno-cygwin  -O2 -g -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -Wall -Wwrite-strings -fno-common -pipe -Winline -fbuiltin -fmessage-length=0  -I. -I/usr/lib/gcc-lib/i686-pc-mingw32/3.2/include -isystem /usr/include/mingw -isystem /usr/include/w32api -isystem /usr/include -o ./regtool.o /usr/src/cygwin-cvs/src/winsup/utils/
 c++ -mno-cygwin -o regtool.exe regtool.o mingw_getopt.o -lnetapi32 -ladvapi32

$ cygcheck .\\regtool.exe

Seems to work, too.  Hope this helps,
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]