Trouble with compiling 4.4.2 under MSVC++

Jacob Delfos jacob.delfos at MAUNSELL.COM
Sun Apr 24 01:36:58 PDT 2005


Hi Donnie,

I've been compiling mapserver last Friday, and at some stage ran into
that same error. I *think* I resolved it by doing a clean build (or by
manually removing all newly created .obj and .lib files). I was using
the MS SDK's to compile.

If that doesn't solve it, I guess try checking if the path where
mapserver_i.lib is created, exists in your LIB path (check your LIB path
settings in the batchfile, if using one. I have had to modify it).

Also, be careful with using backslashes in paths. In some rare
situations, they are treated as special 'escape' characters. I tend to
change them to forward slashes (which the VC compiler seems to handle
just fine) and I try to make sure there are no spaces in my paths.

regards,

Jacob



-----Original Message-----
From: UMN MapServer Users List
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: 4/23/2005 4:57 AM
Subject: [UMN_MAPSERVER-USERS] Trouble with compiling 4.4.2 under MSVC++

I am trying to compile MS 4.4.2 under MSVC++ and I get the following
output from nmake /f makefile.vc



C:\mapserver_build\mapserver-4.4.2>nmake /f makefile.vc



Microsoft (R) Program Maintenance Utility Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.



cl /nologo /MD /W3 /DDEBUG -Ic:/mapserver_build/gdwin32
-Ic:\proj/src -Ic:\mapserver_build\re

gex-0.12 -IC:\mapserver_build\gdal-1.2.6/gcore
-IC:\mapserver_build\gdal-1.2.6/alg -IC:\mapserver_build\g

dal-1.2.6/ogr -IC:\mapserver_build\gdal-1.2.6/port
-IC:\mapserver_build\gdal-1.2.6/ogr/ogrsf_frmts -IC:\m

apserver_build\gdal-1.2.6/ogr -IC:\mapserver_build\gdal-1.2.6/port
-IC:\mapserver_build\libcurl-7.13.1-s

sl-zlib-ares\curl-7.13.1/include -DHAVE_STRING_H -DREGEX_MALLOC
-DNEED_STRCASECMP -DNEED_STRNCAS

ECMP -DNEED_STRLCAT -DWIN32 -D_WIN32 -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_G

D_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONT
-DUSE_OGR -DUSE_WMS_SVR -DUSE_WMS_LYR

-DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GDAL
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR

-DUSE_GD_ANTIALIAS /c mapserv.c /Fomapserv.obj

mapserv.c

link mapserv.obj mapserver_i.lib
c:/mapserver_build/gdwin32/bgd.lib c:\proj/src/proj_i.li

b C:\mapserver_build\gdal-1.2.6/gdal_i.lib
C:\mapserver_build\gdal-1.2.6/gdal_i.lib C:\mapserver_build\li

bcurl-7.13.1-ssl-zlib-ares\curl-7.13.1/lib/libcurl.lib "C:\Program
Files\Microsoft Visual Studio\VC98

\Lib\WSOCK32.LIB"

Microsoft (R) Incremental Linker Version 6.00.8168

Copyright (C) Microsoft Corp 1992-1998. All rights reserved.



LINK : fatal error LNK1181: cannot open input file "mapserver_i.lib"

NMAKE : fatal error U1077: 'link' : return code '0x49d'

Stop.





Anyone have any clues? I think all the deps are OK, I don’t know why
this error occurs, but I can’t get past it…



TIA,

Donnie

_______________________________________________

Donald Marino

Data Systems

Digitalglobe, Inc.

dmarino at digitalglobe.com <mailto:dmarino at digitalglobe.com>

303.684.4331



More information about the MapServer-users mailing list