[mapserver-users] Compiling PHP/Mapscript

Ivan Paoluzzi tesimap at hotmail.com
Tue Oct 8 15:21:34 EDT 2002


Hi all,
I'm compiling Mapserver 3.5 on Win XP with PHP-4.0.6 but I have these error 
messages:

   Creating library mapserv.lib and object mapserv.exp
mapserv.obj : error LNK2001: unresolved external symbol _regfree
mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol 
_regfree
mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol 
_regfree
mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol 
_regcomp
mapserv.obj : error LNK2001: unresolved external symbol _regcomp
mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol 
_regcomp
mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol 
_regcomp
mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol 
_regcomp
mapserver.lib(mapparser.obj) : error LNK2001: unresolved external symbol 
_regexec
mapserv.obj : error LNK2001: unresolved external symbol _regexec
mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol 
_regexec
mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol 
_regexec
mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol 
_regexec
mapserv.exe : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

This is the PHP section in my makefile:

#REGEX_OBJ=../regex/regex.obj
#REGEX_INC=-I../regex

PHP_REGEX=..\php-4.0.6\regex
REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \
          $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj
REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES

REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC


I have compiled correctly (with MSVC project workspace file) regex in PHP. 
Any idea?

Regards
Ivan


_________________________________________________________________
MSN Foto è il sistema più facile per condividere e stampare foto online: 
http://photos.msn.it




More information about the mapserver-users mailing list