Need help to compile mapserver-4.2.2 under windows

Swaminathan, Gayathri gayathri at OU.EDU
Thu Sep 2 06:15:45 PDT 2004


Hello:

This is probably because of your LDFLAGS in Makefile.vc.....

I had to change,

LDFLAGS =     /NODEFAULTLIB:libcd /DEBUG

To this,

LDFLAGS =     /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG

HTH
Gayathri

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jingyu Bai
> Sent: Wednesday, September 01, 2004 12:44 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Need help to compile 
> mapserver-4.2.2 under windows
> 
> 
> Gayathri:
> 
> I searched the archive and found many anwsers from you to 
> help the user like me. I really appreciate your help. I 
> managed to have a Regex.obj and change map server nmake.opt 
> to enable ODBC_LIB , now I can go a step further but still 
> have problem to compile it. I now get : ... ....
> 
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _localtime already 
> defined in LIBC.lib(localtim.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _abort already 
> defined in LIBC.lib (abort.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strcspn already 
> defined in LIBC.lib(strcspn.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _isalnum already 
> defined in LIBC.lib(_ctype.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stricmp already 
> defined in LIBCMTD.lib(stricmp.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strnicmp already 
> defined in LIBCMTD.lib(strnicmp.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already 
> defined in LIBC.lib(strdup.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stat already 
> defined in LIBCMTD.lib(stat.obj); second definition ignored
> MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already 
> defined in LIBCMTD.lib(unlink.obj); second definition ignored
>    Creating library mapserver_i.lib and object mapserver_i.exp
>    LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts 
> with use of other libs; use /NODEFAULTLIB:library LINK : 
> warning LNK4098: defaultlib "MSVCRT" conflicts with use of 
> other libs; use /NODEFAULTLIB:library libmap.dll : fatal 
> error LNK1169: one or more multiply defined symbols found 
> NMAKE : fatal error U1077: 'link' : return code '0x491' Stop. 
> It seems I got a lots of MSVCRT.lib(MSVCRT.dll) warning too 
> but not fatal though.
> 



More information about the MapServer-users mailing list