Linking ?

Don't know where to address this question (probably not the good list,
but I don't know where the problem come from)
I have written a gnome program that compile fine, and work (pretty)
fine. (name A)
When I compile this program with adding -lGL at the end of the
cmd, it compiles, but when I run it, I've got this error :
BUG IN DYNAMIC LINKER dl-version.c: 210: _dl_check_map_versions:
Assertion `needed != ((void *)0)' failed!

The problem is that I have another gnome program (name B)that use -lGL
option, and
If i paste the function that constrain me to add -lGL, from A to B, it
works fine...
Here is the suspicious compile line
gcc -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -o
gaspard2 main.o support.o interface.o callbacks.o gaspard_canvas.o
gaspard_widget.o gserv_function.o on_activate.o on_clicked.o on_enter.o
on_leave.o perso.o gaspard_drag_drop.o paving.o -rdynamic -lgnomeui
-lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext
-lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb -lglib -ldl
-rdynamic -L/usr/lib -L/usr/X11R6/lib -lGL

Can someone explain me where the error probably is located, or where I
have to search ?
Florent DEVIN, 33 (0)3 20 43 47 30, Fax (33) (0)3 20 43 65 66 (Fax LIFL)
LIFL, Laboratoire d'Informatique Fondamentale de LILLE
USTL, Bureau 326, Batiment M3, 59655 Villeneuve d'Ascq Cedex

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]