[mapserver-users] Help needed MapServer Visual C++ 6.0 Project Workspace
Pradeep
pradeepkumar@infotech.stph.net
Wed, 20 Nov 2002 12:39:13 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_002E_01C29091.D4D08C10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Dear Deb,
Hello, I am compiling mapserver in vc++ and landed with the same
kind of errors that you have reported, please refer the mail below, I have
also tried the reply sent to your mail by altering the project settings as
suggested by "j1mm" and still I found the following error "Command line
error D2004 : '/U' requires an argument", can you please tell me how to
solve this problem.
If possible Can u Please give me steps to configure the VC++ workspace for
mapserver step by step.
Thanks for your time
Pradeep
j1mmm@hotmail.com wrote
on VC, project menu and click setting
C++ tab, category: Preprocessor
in undefine sysbols -- put ex. -DUSE_JPEG -DUSE_GD_GIF and all your
needed predefine
in addtional include directory -- put directory of needed OBJ,
ex. -I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./jpeg-6b -I./regex-0.12 -I.
/gdal-1.1.5/ogr/ogrsf_frmts -I./gdal-1.1.5/ogr -I./gdal-1.1.5/ogr/../port
Link tab, category Input
in additional library path -- put your needed Lib path,ex
/gd-1.8.4/gd.lib ./jpeg-6b/jpeg.lib ./lpng1011/libpng.lib
./zlib-1.1.3/zlib.lib ./freetype-2.0.1/obj/freetype.lib
all these vary setting is exist in Makefile.vc
hope useful
j1mmm@hotmail.com
----- Original Message -----
From: <DebasishS@riskinc.com>
To: <mapserver-users@lists.gis.umn.edu>
Sent: Saturday, November 17, 2001 9:14 PM
Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace.
> Hi,
>
> Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you
> please provide me with the workspace file.
> Am getting the following error when i try to compile
>
> Linking...
> mapserv.obj : error LNK2005: _main already defined in legend.obj
> scalebar.obj : error LNK2005: _main already defined in legend.obj
> shp2img.obj : error LNK2005: _main already defined in legend.obj
> shpindex.obj : error LNK2005: _main already defined in legend.obj
> shptree.obj : error LNK2005: _main already defined in legend.obj
> sortshp.obj : error LNK2005: _main already defined in legend.obj
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> maputil.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> scalebar.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> shp2img.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> legend.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> maplegend.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> mapscale.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> mapserv.obj : error LNK2001: unresolved external symbol _gdImageDestroy
> mapfile.obj : error LNK2001: unresolved external symbol
> _gdImageColorAllocate
> mapraster.obj : error LNK2001: unresolved external symbol
> _gdImageColorAllocate
> mapsymbol.obj : error LNK2001: unresolved external symbol
> _gdImageColorAllocate
> mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp
> shptree.obj : error LNK2001: unresolved external symbol _strcasecmp
> mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp
> maphash.obj : error LNK2001: unresolved external symbol _strcasecmp
> mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp
> maputil.obj : error LNK2001: unresolved external symbol _strcasecmp
> mapfile.obj : error LNK2001: unresolved external symbol _regfree
> mapparser.obj : error LNK2001: unresolved external symbol _regfree
> mapserv.obj : error LNK2001: unresolved external symbol _regfree
> mapfile.obj : error LNK2001: unresolved external symbol _regexec
> mapparser.obj : error LNK2001: unresolved external symbol _regexec
> mapserv.obj : error LNK2001: unresolved external symbol _regexec
> maputil.obj : error LNK2001: unresolved external symbol _regexec
> mapfile.obj : error LNK2001: unresolved external symbol _regcomp
> mapparser.obj : error LNK2001: unresolved external symbol _regcomp
> mapserv.obj : error LNK2001: unresolved external symbol _regcomp
> maputil.obj : error LNK2001: unresolved external symbol _regcomp
> maplabel.obj : error LNK2001: unresolved external symbol _gdFontGiant
> maplabel.obj : error LNK2001: unresolved external symbol _gdFontLarge
> maplabel.obj : error LNK2001: unresolved external symbol _gdFontMediumBold
> maplabel.obj : error LNK2001: unresolved external symbol _gdFontSmall
> maplabel.obj : error LNK2001: unresolved external symbol _gdFontTiny
> maplabel.obj : error LNK2001: unresolved external symbol _gdImageString
> maplegend.obj : error LNK2001: unresolved external symbol _gdImageCreate
> mapscale.obj : error LNK2001: unresolved external symbol _gdImageCreate
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCreate
> maputil.obj : error LNK2001: unresolved external symbol _gdImageCreate
> maplegend.obj : error LNK2001: unresolved external symbol
> _gdImageColorTransparent
> mapscale.obj : error LNK2001: unresolved external symbol
> _gdImageColorTransparent
> mapsymbol.obj : error LNK2001: unresolved external symbol
> _gdImageColorTransparent
> maputil.obj : error LNK2001: unresolved external symbol
> _gdImageColorTransparent
> mapprimitive.obj : error LNK2001: unresolved external symbol
> _gdImageSetPixel
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetPixel
> mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageLine
> mapscale.obj : error LNK2001: unresolved external symbol _gdImageLine
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageLine
> mapraster.obj : error LNK2001: unresolved external symbol
_gdImageRectangle
> mapscale.obj : error LNK2001: unresolved external symbol _gdImageRectangle
> mapraster.obj : error LNK2001: unresolved external symbol
> _gdImageFilledRectangle
> mapscale.obj : error LNK2001: unresolved external symbol
> _gdImageFilledRectangle
> mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp
> sortshp.obj : error LNK2001: unresolved external symbol _strncasecmp
> mapsymbol.obj : error LNK2001: unresolved external symbol
> _gdImageFilledPolygon
> mapsymbol.obj : error LNK2001: unresolved external symbol
> _gdImageFillToBorder
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageArc
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetTile
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImagePolygon
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCopy
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetStyle
> mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetBrush
> maputil.obj : error LNK2001: unresolved external symbol _gdImageInterlace
> shpindex.obj : error LNK2001: unresolved external symbol _SHPClose
> shpindex.obj : error LNK2001: unresolved external symbol _SHPReadBounds
> shpindex.obj : error LNK2001: unresolved external symbol _SHPGetInfo
> shpindex.obj : error LNK2001: unresolved external symbol _SHPOpen
> Debug/mapserver.exe : fatal error LNK1120: 32 unresolved externals
> Error executing link.exe.
>
> mapserver.exe - 73 error(s), 109 warning(s)
>
>
> Debasish Sahu.
> Senior Software Engineer
> RMS India.
>
>
>
------=_NextPart_000_002E_01C29091.D4D08C10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY style=3D"COLOR: #000000; FONT-FAMILY: Arial">
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>Dear =
Deb,</FONT></SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN =
class=3D529055705-20112002> =20
<FONT size=3D2>Hello, I am compiling mapserver in vc++ and landed with =
the same=20
kind of errors that you have reported, please refer the mail below, I =
have also=20
tried the reply sent to your mail by altering the project settings as =
suggested=20
by "j1mm" and still I found the following error "Command line error =
D2004 : '/U'=20
requires an argument", can you please tell me how to solve this=20
problem.</FONT></SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>If possible Can u =
Please =20
give me steps to configure the VC++ workspace for mapserver step by=20
step.</FONT></SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>Thanks for your=20
time</FONT></SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2>Pradeep</FONT></SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2><A=20
href=3D"mailto:j1mmm@hotmail.com">j1mmm@hotmail.com</A> wrote</FONT>=
</SPAN></DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>on VC, project menu =
and click=20
setting</FONT></SPAN></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2> =
C++ tab,=20
category: Preprocessor<BR> in undefine sysbols -- put =
ex.=20
-DUSE_JPEG -DUSE_GD_GIF and all your<BR>needed =
predefine<BR> =20
in addtional include directory -- put directory of needed OBJ,<BR>ex.=20
-I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./jpeg-6b -I./regex-0.12=20
-I.<BR>/gdal-1.1.5/ogr/ogrsf_frmts -I./gdal-1.1.5/ogr=20
-I./gdal-1.1.5/ogr/../port</FONT></SPAN></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2> =
Link tab,=20
category Input<BR> in additional library path -- =
put=20
your needed Lib path,ex<BR>/gd-1.8.4/gd.lib ./jpeg-6b/jpeg.lib=20
./lpng1011/libpng.lib<BR>./zlib-1.1.3/zlib.lib=20
./freetype-2.0.1/obj/freetype.lib</FONT></SPAN></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>all these vary =
setting is exist=20
in Makefile.vc</FONT></SPAN></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><SPAN class=3D529055705-20112002><FONT size=3D2>hope useful<BR><A=20
href=3D"mailto:j1mmm@hotmail.com">j1mmm@hotmail.com</A></FONT></SPAN></DI=
V>
<DIV><SPAN class=3D529055705-20112002><FONT =
size=3D2></FONT></SPAN> </DIV>
<DIV><FONT size=3D2>----- Original Message -----<BR>From: <<A=20
href=3D"mailto:DebasishS@riskinc.com">DebasishS@riskinc.com</A>><BR>To=
: <<A=20
href=3D"mailto:mapserver-users@lists.gis.umn.edu">mapserver-users@lists.g=
is.umn.edu</A>><BR>Sent:=20
Saturday, November 17, 2001 9:14 PM<BR>Subject: [mapserver-users] =
MapServer=20
Visual C++ 6.0 Project Workspace.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2><BR>> Hi,<BR>><BR>> Has anbody tried =
compiling=20
Mapserver 3.5 using Visual C++ 6.0 . Can you<BR>> please provide me =
with the=20
workspace file.<BR>> Am getting the following error when i try to=20
compile<BR>><BR>> Linking...<BR>> mapserv.obj : error LNK2005: =
_main=20
already defined in legend.obj<BR>> scalebar.obj : error LNK2005: =
_main=20
already defined in legend.obj<BR>> shp2img.obj : error LNK2005: _main =
already=20
defined in legend.obj<BR>> shpindex.obj : error LNK2005: _main =
already=20
defined in legend.obj<BR>> shptree.obj : error LNK2005: _main already =
defined=20
in legend.obj<BR>> sortshp.obj : error LNK2005: _main already defined =
in=20
legend.obj<BR>> mapsymbol.obj : error LNK2001: unresolved external =
symbol=20
_gdImageDestroy<BR>> maputil.obj : error LNK2001: unresolved external =
symbol=20
_gdImageDestroy<BR>> scalebar.obj : error LNK2001: unresolved =
external symbol=20
_gdImageDestroy<BR>> shp2img.obj : error LNK2001: unresolved external =
symbol=20
_gdImageDestroy<BR>> legend.obj : error LNK2001: unresolved external =
symbol=20
_gdImageDestroy<BR>> maplegend.obj : error LNK2001: unresolved =
external=20
symbol _gdImageDestroy<BR>> mapscale.obj : error LNK2001: unresolved =
external=20
symbol _gdImageDestroy<BR>> mapserv.obj : error LNK2001: unresolved =
external=20
symbol _gdImageDestroy<BR>> mapfile.obj : error LNK2001: unresolved =
external=20
symbol<BR>> _gdImageColorAllocate<BR>> mapraster.obj : error =
LNK2001:=20
unresolved external symbol<BR>> _gdImageColorAllocate<BR>> =
mapsymbol.obj :=20
error LNK2001: unresolved external symbol<BR>> =
_gdImageColorAllocate<BR>>=20
mapxbase.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
shptree.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
mapfile.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
maphash.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
mapserv.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
maputil.obj : error LNK2001: unresolved external symbol =
_strcasecmp<BR>>=20
mapfile.obj : error LNK2001: unresolved external symbol _regfree<BR>> =
mapparser.obj : error LNK2001: unresolved external symbol =
_regfree<BR>>=20
mapserv.obj : error LNK2001: unresolved external symbol _regfree<BR>> =
mapfile.obj : error LNK2001: unresolved external symbol _regexec<BR>> =
mapparser.obj : error LNK2001: unresolved external symbol =
_regexec<BR>>=20
mapserv.obj : error LNK2001: unresolved external symbol _regexec<BR>> =
maputil.obj : error LNK2001: unresolved external symbol _regexec<BR>> =
mapfile.obj : error LNK2001: unresolved external symbol _regcomp<BR>> =
mapparser.obj : error LNK2001: unresolved external symbol =
_regcomp<BR>>=20
mapserv.obj : error LNK2001: unresolved external symbol _regcomp<BR>> =
maputil.obj : error LNK2001: unresolved external symbol _regcomp<BR>> =
maplabel.obj : error LNK2001: unresolved external symbol =
_gdFontGiant<BR>>=20
maplabel.obj : error LNK2001: unresolved external symbol =
_gdFontLarge<BR>>=20
maplabel.obj : error LNK2001: unresolved external symbol=20
_gdFontMediumBold<BR>> maplabel.obj : error LNK2001: unresolved =
external=20
symbol _gdFontSmall<BR>> maplabel.obj : error LNK2001: unresolved =
external=20
symbol _gdFontTiny<BR>> maplabel.obj : error LNK2001: unresolved =
external=20
symbol _gdImageString<BR>> maplegend.obj : error LNK2001: unresolved =
external=20
symbol _gdImageCreate<BR>> mapscale.obj : error LNK2001: unresolved =
external=20
symbol _gdImageCreate<BR>> mapsymbol.obj : error LNK2001: unresolved =
external=20
symbol _gdImageCreate<BR>> maputil.obj : error LNK2001: unresolved =
external=20
symbol _gdImageCreate<BR>> maplegend.obj : error LNK2001: unresolved =
external=20
symbol<BR>> _gdImageColorTransparent<BR>> mapscale.obj : error =
LNK2001:=20
unresolved external symbol<BR>> _gdImageColorTransparent<BR>>=20
mapsymbol.obj : error LNK2001: unresolved external symbol<BR>>=20
_gdImageColorTransparent<BR>> maputil.obj : error LNK2001: unresolved =
external symbol<BR>> _gdImageColorTransparent<BR>> =
mapprimitive.obj :=20
error LNK2001: unresolved external symbol<BR>> =
_gdImageSetPixel<BR>>=20
mapsymbol.obj : error LNK2001: unresolved external symbol=20
_gdImageSetPixel<BR>> mapprimitive.obj : error LNK2001: unresolved =
external=20
symbol _gdImageLine<BR>> mapscale.obj : error LNK2001: unresolved =
external=20
symbol _gdImageLine<BR>> mapsymbol.obj : error LNK2001: unresolved =
external=20
symbol _gdImageLine<BR>> mapraster.obj : error LNK2001: unresolved =
external=20
symbol<BR>_gdImageRectangle<BR>> mapscale.obj : error LNK2001: =
unresolved=20
external symbol _gdImageRectangle<BR>> mapraster.obj : error LNK2001: =
unresolved external symbol<BR>> _gdImageFilledRectangle<BR>> =
mapscale.obj=20
: error LNK2001: unresolved external symbol<BR>>=20
_gdImageFilledRectangle<BR>> mapserv.obj : error LNK2001: unresolved =
external=20
symbol _strncasecmp<BR>> sortshp.obj : error LNK2001: unresolved =
external=20
symbol _strncasecmp<BR>> mapsymbol.obj : error LNK2001: unresolved =
external=20
symbol<BR>> _gdImageFilledPolygon<BR>> mapsymbol.obj : error =
LNK2001:=20
unresolved external symbol<BR>> _gdImageFillToBorder<BR>> =
mapsymbol.obj :=20
error LNK2001: unresolved external symbol _gdImageArc<BR>> =
mapsymbol.obj :=20
error LNK2001: unresolved external symbol _gdImageSetTile<BR>> =
mapsymbol.obj=20
: error LNK2001: unresolved external symbol _gdImagePolygon<BR>>=20
mapsymbol.obj : error LNK2001: unresolved external symbol =
_gdImageCopy<BR>>=20
mapsymbol.obj : error LNK2001: unresolved external symbol=20
_gdImageSetStyle<BR>> mapsymbol.obj : error LNK2001: unresolved =
external=20
symbol _gdImageSetBrush<BR>> maputil.obj : error LNK2001: unresolved =
external=20
symbol _gdImageInterlace<BR>> shpindex.obj : error LNK2001: =
unresolved=20
external symbol _SHPClose<BR>> shpindex.obj : error LNK2001: =
unresolved=20
external symbol _SHPReadBounds<BR>> shpindex.obj : error LNK2001: =
unresolved=20
external symbol _SHPGetInfo<BR>> shpindex.obj : error LNK2001: =
unresolved=20
external symbol _SHPOpen<BR>> Debug/mapserver.exe : fatal error =
LNK1120: 32=20
unresolved externals<BR>> Error executing link.exe.<BR>><BR>>=20
mapserver.exe - 73 error(s), 109 warning(s)<BR>><BR>><BR>> =
Debasish=20
Sahu.<BR>> Senior Software Engineer<BR>> RMS=20
India.<BR>><BR>><BR>></FONT></DIV></BODY></HTML>
------=_NextPart_000_002E_01C29091.D4D08C10--