Thanks for the tip. I kludged-up the src\makefile
(after doing configure --msvc, of course), and
it built!

Here's the makefile with my mods:
---------------------------------------
# Makefile for `wget' utility for MSVC
# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# In addition, as a special exception, the Free Software Foundation
# gives permission to link the code of its release of Wget with the
# OpenSSL project's "OpenSSL" library (or with modified versions of it
# that use the same license as the "OpenSSL" library), and distribute
# the linked executables.  You must obey the GNU General Public License
# in all respects for all of the code used other than "OpenSSL".  If you
# modify this file, you may extend this exception to your version of the
# file, but you are not obligated to do so.  If you do not wish to do
# so, delete this exception statement from your version.


# SSL (https) support requires the OpenSSL library (see 
http://www.openssl.org/).
# If you do not have OpenSSL installed or wish to build Wget without SSL
# support, either comment-out the following lines or define NO_SSL.
!ifndef NO_SSL
SSLDEFS = /DHAVE_SSL
SSLLIBS = libeay32.lib ssleay32.lib
SSLSRC  = openssl.c http-ntlm.c
SSLOBJ  = openssl$o http-ntlm$o
!endif

o = .obj

CC      = cl
LD      = link
RM      = -del

DEFS    = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H $(SSLDEFS)
LIBS    = kernel32.lib advapi32.lib wsock32.lib user32.lib gdi32.lib $(SSLLIBS)

!ifdef DEBUG
CFLAGS  = /nologo /MTd /Od /Zi /I. $(DEFS)
CFLAGS2 = $(CFLAGS)
LDFLAGS = /debug
!else
CFLAGS  = /nologo /MT /O2 /I. $(DEFS)
CFLAGS2 = /nologo /MT /Od /I. $(DEFS)
LDFLAGS = /opt:ref #/opt:nowin98
!endif


# The following enables security checks and is recommended if you are using
# MSVC 7.0 (or later) for 80x86.
!ifdef SECURITY_CHECKS
CFLAGS  = $(CFLAGS) /GS
CFLAGS2 = $(CFLAGS2) /GS
!endif

# The following enables link-time code generation (Cross-file
# interprocedural optimizations).
!ifdef LTCG
CFLAGS  = $(CFLAGS) /GL
CFLAGS2 = $(CFLAGS2) /GL
LDFLAGS = $(LDFLAGS) /ltcg:status
!endif


SRC = cmpt.c safe-ctype.c convert.c connect.c host.c netrc.c \
      ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c \
      html-parse.c html-url.c progress.c recur.c res.c url.c cookies.c \
      init.c utils.c main.c ptimer.c version.c xmalloc.c mswindows.c \
      gen-md5.c gnu-md5.c log.c $(SSLSRC)

OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o netrc$o \
      ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o \
      html-parse$o html-url$o progress$o recur$o res$o url$o cookies$o \
      init$o utils$o main$o ptimer$o version$o xmalloc$o mswindows$o \
      gen-md5$o gnu-md5$o log$o $(SSLOBJ)

.SUFFIXES: .c .obj

# If this doesn't work for you, remove the second colon.
.c.obj::
        $(CC) $(CFLAGS) /c $<

# Dependencies for building

wget.exe: $(OBJ) retr$o http$o
        $(LD) @<< $(LDFLAGS) /out:$@ $(OBJ) retr$o http$o $(LIBS)
<<


retr.obj: retr.c
        $(CC) $(CFLAGS2) /c retr.c

http.obj: http.c
        $(CC) $(CFLAGS2) /c http.c


#
# Dependencies for cleanup
#

clean:
        $(RM) *.bak
        $(RM) *.obj
        $(RM) *.exe
        $(RM) *.pdb
        $(RM) *.map
        $(RM) *.ilk

distclean: clean
        $(RM) Makefile
        $(RM) config.h

realclean: distclean
        $(RM) TAGS

# Dependencies:

!include "..\windows\wget.dep"
---------------------------------------

I added CFLAGS2, removed retr.c and http.c from
SRC and OBJ and included them separately. As an
afterthought just now I added CFLAGS2 to the DEBUG
case but I didn't test that.


--- Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> James Wiebe <[EMAIL PROTECTED]> writes:
> > I'm writing to report my unsuccessful compile
> > of WGet ver 1.10 on Windows 2000 and also XP with MSVC++ 6.0.
> 
> This is a known bug in MSVC++ 6.0.  You can work around it by
> compiling retr.c and http.c with no (or at least less) optimization.
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to