Re: Linkerproblem with mcal/datetime.h

From: QNils_O=2E_Sel=E5sdal=22?= (NOS_at_Utel.no)
Date: 10/14/04


Date: 14 Oct 2004 20:30:23 +0200

Thomas wrote:
> Hi everybody,
> I haven't found any fitting previous question/answer,
> so I need to bother you.
  ...
>
> erroroutput:
>
> /tmp/ccoaguJ2.o(.text+0x2c): In function `main':
> : undefined reference to `dt_now'
> /tmp/ccoaguJ2.o(.text+0x3a): In function `main':
> : undefined reference to `dt_dayofyear'
> /tmp/ccoaguJ2.o(.text+0x51): In function `main':
> : undefined reference to `dt_setdate'
> /tmp/ccoaguJ2.o(.text+0x5f): In function `main':
> : undefined reference to `dt_dayofyear'
> collect2: ld returned 1 exit status
>
> Can anybody explain me why this errors occur?
You need to link with whatever libray that provides
these functions. (e.g. gcc -o prog prog.c -lmcal
Use comp.unix.programmer or comp.os.linux.development.apps
for further questions.