Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2003 12:18:51 +0200 (EET)
From:      Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
To:        Erik Trulsson <ertr1013@student.uu.se>
Cc:        stable@freebsd.org
Subject:   Re: ftime doesn't fetch from libcompat.a using -lcompat
Message-ID:  <20031218121325.U32014@atlantis.atlantis.dp.ua>
In-Reply-To: <20031218101121.GA22294@falcon.midgard.homeip.net>
References:  <20031218114047.W32014@atlantis.atlantis.dp.ua> <20031218101121.GA22294@falcon.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello!

On Thu, 18 Dec 2003, Erik Trulsson wrote:
> On Thu, Dec 18, 2003 at 11:54:29AM +0200, Dmitry Pryanishnikov wrote:
> > dmitry@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@atlantis.dp.ua
nic-hdl: LYNX-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031218121325.U32014>