From: Alan W. I. <ir...@be...> - 2002-01-29 17:57:09
|
On my RedHat 7.1 system I cannot get either the C or tk examples to build a typical error message is gcc -c -O -I/usr/include/plplot/.. -I. -I/usr/include/gtk-1.2 -I/us r/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include - I/usr/lib/gnome-libs/include xtk01.c gcc xtk01.o \ -L/usr/lib -lplplotd -o xtk01 -litk3.1 -ltk8.3 -litcl3.1 -ltcl8.3 -L/usr/ X11R6/lib -lX11 -ldl -lm -lg2c -Wl,-rpath,/usr/lib /usr/lib/libtclmatrixd.so.5: undefined reference to atexit' collect2: ld returned 1 exit status make: *** [xtk01] Error 1 Interestingly, the fortran and c++ examples build and execute fine. I tried replacing gcc with g77 in the above, but it made no difference. I suspect there is some obscure library containing atexit that I am missing on the RH 7.1 system, but which library is it? Once that is identified, I can install the library and proceed. Another possibility is that libtclmatrixd is not linked properly, but again I need to know the name of the library which contains atexit. Any help in identifying the library containing atexit would be much appreciated. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |