[Mapserver-users] compiling regex on windows

Stephen Clark stephen.clark at focus.ca
Tue Nov 4 08:23:10 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0044_01C3A2AC.E1EF8030
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I have attached a copy of a windows makefile.vc I got from the list a while
back.

try this out.

stephen

----- Original Message ----- 
From: "bean at vt.edu" <agillesp at vt.edu>
To: "Mapserver-users" <Mapserver-users at lists.gis.umn.edu>; "Stephen Clark"
<stephen.clark at focus.ca>
Sent: Tuesday, November 04, 2003 7:03 AM
Subject: RE: [Mapserver-users] compiling regex on windows


> my regex only came with Makefile.in ... that's for *nix.  am i missing
> something?
>
> -abe
>
> >===== Original Message From Stephen Clark <stephen.clark at focus.ca> =====
> >Heve you tried compiling using  at a command window:
> >
> >nmake /f makefile.vc
> >
> >
> >
> >
> >----- Original Message -----
> >From: "Abram Gillespie" <agillesp at vt.edu>
> >To: <Mapserver-users at lists.gis.umn.edu>
> >Sent: Sunday, November 02, 2003 9:00 PM
> >Subject: [Mapserver-users] compiling regex on windows
> >
> >
> >> i'm trying to compile the regex lib on windows 2000 with vs.net.  i get
> >> the following error:
> >> c:\source_code\regex-0.12\regex.c(63) : fatal error C1083: Cannot open
> >> include file: 'strings.h': No such file or directory
> >>
> >> then when i define HAVE_STRING_H to try to fix the above error i get
> >> these:
> >> c:\source_code\regex-0.12\regex.c(808) : error C2365: 're_set_syntax' :
> >> redefinition; previous definition was a 'function'
> >>          c:\source_code\regex-0.12\regex.h(404) : see declaration of
> >> 're_set_syntax'
> >> c:\source_code\regex-0.12\regex.c(808) : error C2146: syntax error :
> >> missing ';' before identifier 'reg_syntax_t'
> >> c:\source_code\regex-0.12\regex.c(808) : fatal error C1004: unexpected
> >> end of file found
> >>
> >> anything i can do?
> >>
> >> thanks.
> >> abe
> >>
> >> _______________________________________________
> >> Mapserver-users mailing list
> >> Mapserver-users at lists.gis.umn.edu
> >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >>
>
>
>

------=_NextPart_000_0044_01C3A2AC.E1EF8030
Content-Type: application/octet-stream;
	name="Makefile.vc"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="Makefile.vc"

# Makefile for regex.
# 
# Copyright (C) 1992, 1993 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, 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.

version = 0.12

# You can define CPPFLAGS on the command line.  Aside from system-specific
# flags, you can define:
#   -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
#   -DDEBUG to enable the compiled pattern disassembler and execution
#           tracing; code runs substantially slower.
#   -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
#           the corresponding C procedures).  If not -DDEBUG, the macros
#           are used.
CPPFLAGS = -DHAVE_STRING_H -DREGEX_MALLOC

# Likewise, you can override CFLAGS to optimize, use -Wall, etc.
CFLAGS = -Ox -G6 

# Ditto for LDFLAGS and LOADLIBES.
LDFLAGS =
LOADLIBES =

#srcdir = @srcdir@
#VPATH = @srcdir@

CC = cl
#DEFS = @DEFS@

SHELL = /bin/sh

subdirs = doc test

default all:: regex.obj
.PHONY: default all

regex.obj: regex.c regex.h
	$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $*.c

clean mostlyclean::
	rm -f *.obj

distclean:: clean
	rm -f Makefile config.status

extraclean:: distclean
	rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out

configure: configure.in
	autoconf

config.status: configure
	sh configure --no-create

Makefile: Makefile.in config.status
	sh config.status

makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'

default all install \
mostlyclean clean distclean extraclean realclean \
TAGS check::
	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
.PHONY: install mostlyclean clean distclean extraclean realclean TAGS check

# Prevent GNU make 3 from overflowing arg limit on system V.
.NOEXPORT:

distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
            *.in configure regex.c regex.h 
distdir = regex-$(version)
distargs = version=$(version) distdir=../$(distdir)/$$d
dist: TAGS configure
	@echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
	@echo "  regex.c, regex.h,"
	@echo "  and doc/xregex.texi (if modified)."
	rm -rf $(distdir)
	mkdir $(distdir)
	ln $(distfiles) $(distdir)
	for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
	tar czhf $(distdir).tar.Z $(distdir)
	rm -rf $(distdir)
.PHONY: dist

------=_NextPart_000_0044_01C3A2AC.E1EF8030--




More information about the MapServer-users mailing list