Sluggers,

When I try to compile some 'C' code against the opendwg libraries
using

  "gcc mycode.c ar2.r -o myexe"

I get this error,

  /tmp/ccdpk5cg.o: In function `addEdge':
  /tmp/ccdpk5cg.o(.text+0x1884): undefined reference to `sin'
  /tmp/ccdpk5cg.o(.text+0x18a5): undefined reference to `cos'

So the ad2.r library references sin and cos, hardly surprising.

I vaguely recall that there is a switch for the compiler that links
in the maths library but I'm buggered if I can find it via man gcc.

Cluestick?

TIA's

Pete

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to