Re: linking problems

Timothee Besset <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>
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" <[email protected]> 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
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.