Problems with WIN32 Build

Bob Bruce covariance at SHAW.CA
Mon Apr 25 01:06:50 EDT 2005


I was just trying to build MapServer on my Windows 2000 system and got the
following errors near the end of my build:

        link  mapserv.obj mapserver_i.lib c:/projects/gdwin32/bgd.lib
 c:\projects\proj-4.4.9/src/proj_i.lib
 c:\projects\gdal-1.2.5/gdal_i.lib c:/projects/curl-7.13.0/lib/libcurl.lib
   "C:\Program Files\Microsoft Visual S
tudio .NET 2003\Vc7\PlatformSDK\Lib\WSOCK32.LIB"
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

mapserv.obj : error LNK2019: unresolved external symbol _msForceTmpFileBase
referenced in function _main
mapserv.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

The only place in the build that I can find a reference to
msForceTmpFileBase is up in the build output at:

maputil.c
c:\Projects\mapserver_dev\mapproject.h(41) : warning C4005: 'USE_PROJ_API_H'
: macro redefinition
        command-line arguments :  see previous definition of 'USE_PROJ_API_H'
maputil.c(1027) : warning C4098: 'msForceTmpFileBase' : 'void' function
returning a value
        cl /nologo /MD /W3 /DDEBUG -Ic:/projects/gdwin32
-Ic:\projects\proj-4.4.9/src -IC:\php-4.3.11/regex -DP
HP_NO_ALIASES -Ic:\projects\gdal-1.2.5/gcore -Ic:\projects\gdal-1.2.5/alg
-Ic:\projects\gdal-1.2.5/ogr -Ic:\project
s\gdal-1.2.5/port   -Ic:/projects/curl-7.13.0/include
-DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -D
NEED_STRNCASECMP -DNEED_STRLCAT   -DWIN32 -D_WIN32   -DUSE_PROJ
-DUSE_PROJ_API_H   -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE
_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT
-DGD_HAS_GETBITMAPFONT  -DUSE_WMS_SVR  -DUSE_WMS_LYR  -DIG
NORE_MISSING_DATA  -DENABLE_STDERR_DEBUG  -DUSE_GDAL   -DUSE_WFS_SVR
-DUSE_WFS_LYR     -DUSE_GD_ANTIALIAS     /c ma
pscale.c /Fomapscale.obj

I see that there was a note in maputil.c that msForceTmpFileBase was added -
2005/02/09 21:51:17  frank - so I don't understand why I am getting an
unresolved external reference.

I am using Visual Studio .NET 2003 Standard Edition to do this build.

Can someone out there tell me what I need to do to fix this problem?

thanks,
         Bob Bruce, Winnipeg, Manitoba



More information about the mapserver-users mailing list