W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: Link error in win32 build and patch.: better patch.

From: Glenn Serre <gaserre@spiresoftware.com>
Date: Thu, 09 Sep 1999 17:33:53 -0700
Message-ID: <37D851F1.4D260940@spiresoftware.com>
To: "www-lib@w3.org" <www-lib@w3.org>
Good afternoon again,

Sorry for the extra bandwidth.  A better patch is probably to add the PUBLIC macro to the appropriate places in HTString.c:

bash-2.02$ cvs diff HTString.c
Index: HTString.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTString.c,v
retrieving revision 2.45
diff -r2.45 HTString.c
87c87
< int tailcomp(const char * s1, const char * s2)
---
> PUBLIC int tailcomp(const char * s1, const char * s2)
98c98
< int tailcasecomp(const char * s1, const char * s2)
---
> PUBLIC int tailcasecomp(const char * s1, const char * s2)

Thanks,
--Glenn S.


Glenn Serre wrote:

> Good afternoon,
>
> When I build the windows (NT) version of libwww, I get the following link error:
>
> -------------------Configuration: wwwhttp - Win32 Debug--------------------
> Linking...
>    Creating library ..\..\..\Bin/wwwhttp.lib and object ..\..\..\Bin/wwwhttp.exp
> HTCookie.obj : error LNK2001: unresolved external symbol _tailcasecomp
> ..\..\..\Bin\Debug\wwwhttp.dll : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>
> wwwhttp.dll - 2 error(s), 1 warning(s)
>
> Adding these two lines to the file Library/src/windows/wwwutils.def seems to fix the problem:
>
> tailcasecomp  @ 811
> tailcomp  @ 812
>
> Thanks,
> --Glenn S.
Received on Thursday, 9 September 1999 20:33:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:17 UTC