Wednesday, August 18, 2004, 1:45:43 PM, Federico  wrote:

> [...]

> gcc -g -O2 -DTHREADSAFE=1 -DOS_UNIX=1 -DOS_WIN=0 -DHAVE_USLEEP=1 -I.
> -I../sqlite/src -DHAVE_READLINE=0 
> -o .libs/sqlite ../sqlite/src/shell.c  ./.libs/libsqlite.so
> ./.libs/libsqlite.so: undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make: *** [sqlite] Error 1

You must link with a math library that includes sqrt.

Perhaps adding -lm (assuming you have libm.a and it has sqrt) to the
end of the TCC or LTLINK lines in the Makefile will help.

e


Reply via email to