W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

Re: linking problems

From: Timothee Besset <ttimo@idsoftware.com>
Date: Thu, 2 Jan 2003 14:19:15 +0100
To: www-lib@w3.org
Message-Id: <20030102141915.503c8ef5.ttimo@idsoftware.com>

Are you linking dynamically, or trying to do static linking?
If you are linking dynamically, using libwww-config --libs should work fine

TTimo

On Thu, 2 Jan 2003 15:15:11 +0200
"Eran \"DarkEye\" Uzan" <tr4_h5@mishkei.org.il> wrote:

> 
> hello list
> 
> i`m tring to implement a  simaple function to download file useing the 
> "HTLoadFile()" but i`m getting an error meassages from the linker
> every time i have any ( well in the extent of what i checked)  of the libwww 
> functin is in the code there are no problem with class or structs (again from 
> what  i have checked) the error msg is :
> ---------------------------------------------------------------------------------------------------------
> usr/libi/libwwwcore.a(HTWWWStr.o)(.text+0x6bd): In function `HTMessageIdStr':
> : the use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/lib/libwwwcore.a(HTInet.o)(.text+0x83b): In function `HTGetTmpFileName':
> : the use of `tempnam' is dangerous, better use `mkstemp'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x24c): In function `HTConverterInit':
> : undefined reference to `HTXML_new'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x276): In function `HTConverterInit':
> : undefined reference to `HTXML_new'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x4bd): In function 
> `HTTransferEncoderInit':
> : undefined reference to `HTZLib_inflate'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x509): In function 
> `HTContentEncoderInit':
> : undefined reference to `HTZLib_inflate'
> collect2: ld returned 1 exit status
> make: *** [pkgadd] Error 1
> ---------------------------------------------------------------------------------------------------------
> it seems like a missing library but i have no idea what library  i`m useing 
> libwww-config for the library listing  that i give to the linker if anyone 
> ANY insights please reply
> 
> DarkEye
> 
> 
Received on Thursday, 2 January 2003 08:19:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT