Re: A compiling problem with a simplest comedi pogram

Hi Kelvin,

On Sat, 2007-01-06 at 17:34 -0600, Fei Chu wrote:
[...]
> When I 
> cc tut1.c -lcomedi -o tut1
> 
> I got the following error
> 
> /usr/local/lib/libcomedi.so: undefined reference to `lrint'
> collect2: ld returned 1 exit status
> 
> 
> I think this error should be about some settings of the lib directory. But I'm not quite sure. Can anyone help me have a look at on this?

You are missing the math library:
cc tut1.c -lcomedi -lm -o tut1

> 
> Thanks.
> 
> Kelvin

Regards,
Jan

Received on 2007-01-08Z13:30:51