Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: gcc on Freeware CD, compile error
  2001-10-27 15:25 gcc on Freeware CD, compile error PM WONG
@ 2001-10-27  8:58 ` Paul Stanier
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Stanier @ 2001-10-27  8:58 UTC (permalink / raw)


The snprintf library routine is not supplied with Tru64 4.x

It is supplied in Tru64 5.x. in '/usr/lib/libc.a'

Its a relatively new addition to standard C libraries.

However if you add '-ldb' to the link options it should find a version of
the routine in the '/usr/lib/libdb.a'  library supplied with 4.x

This is certainly the situation on the standard Compaq C compilers, I havent
tried it in gcc.

"PM WONG" <s11976@net2.hkbu.edu.hk> wrote in message
news:9rejlj$inu$1@net44p.hkbu.edu.hk...
> I've inserted the Freeware software CD on my alphaserver
> running 4.0E
> The gcc that's on the CD have successfully compiled and
> made many of my programs.
> But lately on one called amavis, the following error cropped
> up during the make:
>
> gcc  -g -O2   -o amavis  amavis.o
> /usr/bin/ld:
> Unresolved:
> snprintf
> collect2: ld returned 1 exit status
>
> Does anyone know what caused this error
> Anything to tweak about so that this gcc can be used
> to make my compilation work.
>
> BTW if this CD's gcc is really not meeting my requirement
> (is it too outdated ?) where can i can the latest gcc
> to install to work on 4.0E




^ permalink raw reply	[flat|nested] 2+ messages in thread

* gcc on Freeware CD, compile error
@ 2001-10-27 15:25 PM WONG
  2001-10-27  8:58 ` Paul Stanier
  0 siblings, 1 reply; 2+ messages in thread
From: PM WONG @ 2001-10-27 15:25 UTC (permalink / raw)


I've inserted the Freeware software CD on my alphaserver
running 4.0E
The gcc that's on the CD have successfully compiled and
made many of my programs.
But lately on one called amavis, the following error cropped
up during the make:

gcc  -g -O2   -o amavis  amavis.o
/usr/bin/ld:
Unresolved:
snprintf
collect2: ld returned 1 exit status

Does anyone know what caused this error
Anything to tweak about so that this gcc can be used
to make my compilation work.

BTW if this CD's gcc is really not meeting my requirement
(is it too outdated ?) where can i can the latest gcc
to install to work on 4.0E


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-27 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-27 15:25 gcc on Freeware CD, compile error PM WONG
2001-10-27  8:58 ` Paul Stanier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox