[gts-general] Linking problem (repost)
Brought to you by:
popinet
From: Paolo R. <pao...@po...> - 2004-01-21 07:03:53
|
(This mail have been resent since I'm not sure it has been correctly sent to the list) Hi people! I'm a newbie user of the GTS. I've began hacking delaunay.c example. I copied it into another directory as maglione.c, i've modified it in a couple of point and I tried to recompile it with the command: [paolo@laboratorio src]$ gcc maglione.c $(gts-config --libs --cflags gts gmodule ) -lm -DHAVE_CONFIG_H /tmp/cc94aclN.o(.text+0x31d): In function `triangle_is_hole': : undefined reference to `gts_object_is_from_class' /tmp/cc94aclN.o(.text+0x346): In function `triangle_is_hole': : undefined reference to `gts_object_is_from_class' /tmp/cc94aclN.o(.text+0x36f): In function `triangle_is_hole': : undefined reference to `gts_object_is_from_class' /tmp/cc94aclN.o(.text+0x4a0): In function `gts_constraint_split': : undefined reference to `gts_object_is_from_class' /tmp/cc94aclN.o(.text+0x54e): In function `gts_constraint_split': : undefined reference to `gts_object_is_from_class' /tmp/cc94aclN.o(.text+0x5c1): more undefined references to `gts_object_is_from_class' follow collect2: ld returned 1 exit status The actual command iussed by bash substitution is: gcc maglione.c -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -L/usr/local/lib -lgts -L/usr/lib -lglib -rdynamic -lgmodule -ldl -lm -lm -DHAVE_CONFIG_H I work on a RedHat 9.0, installed gts from the sources using the tarball. My glib 1.2 is taken from RH package glib-1.2.10-10 and glib-devel-1.2.10-10 The original delaunay.c example is correctly compiled and linked. Infact: [paolo@laboratorio .libs]$ ldd delaunay libgts-0.7.so.1 => /usr/local/lib/libgts-0.7.so.1 (0x40017000) libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40075000) I'm quite sure I do a stupid, newbie error. Can someone please point it out? Thanks in advance, Paolo Redaelli |