ftime doesn't fetch from libcompat.a using -lcompat

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Thu Dec 18 02:18:59 PST 2003


Hello!

On Thu, 18 Dec 2003, Erik Trulsson wrote:
> On Thu, Dec 18, 2003 at 11:54:29AM +0200, Dmitry Pryanishnikov wrote:
> > dmitry at test$ cc -lcompat a.c
> > /tmp/cck3ZpNz.o: In function `main':
> > /tmp/cck3ZpNz.o(.text+0xe): undefined reference to `ftime'
>
> The error lies with you, not the system.
> Try compiling it using 'cc a.c -lcompat' instead.
> The order of objectfiles/archives does matter when using static libraries.

 Ups! Didn't know that. Thank you!

Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the freebsd-stable mailing list