diana*~/VoIp/rtp_atena/rtplib-1.0b2>make
gcc  -g -O2 -W -Wall -Wmissing-prototypes -Wstrict-prototypes
-DPROTOTYPES  -o example1  example1.o librtpunix.a librtp.a -lm -lsocket
-lnsl
Undefined                       first referenced
 symbol                             in file
gethostid                           librtpunix.a(rtp_unix.o)
ld: fatal: Symbol referencing errors. No output written to example1
make: *** [example1] Error 1
diana*~/VoIp/rtp_atena/rtplib-1.0b2>

iar man gethostid este:
gethostid(3BSunOS/BSD Compatibility Library Functiongethostid(3B)



NAME
     gethostid - get unique identifier of current host

SYNOPSIS
     /usr/ucb/cc [ flag ... ] file ...

     long gethostid()

DESCRIPTION
     gethostid() returns the 32-bit identifier  for  the  current
     host,  which should be unique across all hosts.  This number
     is usually taken from the CPU board's ID PROM.

SEE ALSO
     hostid(1B), sysinfo(2)

NOTES
     Use of these interfaces should be restricted to only  appli-
     cations  written  on BSD platforms.  Use of these interfaces
     with any of the system libraries or in multi-thread applica-
     tions is unsupported.

SunOS 5.4           Last change: 12 Feb 1993 

masina este: SunOS diana 5.4 Generic_101945-41 sun4m sparc

C

Petru Paler wrote:
> 
> On Wed, Nov 08, 2000 at 11:47:25AM +0200, Ciprian Niculescu wrote:
> > Dorind sa compilez un program pe un Sun, la link editare imi spune ca nu
> > gaseste o functie, desi man functie, exista, dar nu spune in ce
> > biblioteca se afla functia, cum se poate afla???
> 
> Daca ne-ai spune si despre ce functie e vorba, poate te-am puta ajuta.
> 
> PS: e destul de probabil sa fie vorba despre socket(), bind(), connect(),
> listen(), accept(), etc (caz in care pui un -lsocket la linkeditare) sau
> de gethostbyname(), gethostbyaddr(), set/endhostent(), caz in care trebe
> -lnsl.
> 
> --
> Petru Paler, mailto:[EMAIL PROTECTED]
> http://www.ppetru.net - ICQ: 41817235
> 
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui