From: Alan W. I. <ir...@be...> - 2002-07-10 13:07:59
|
On Wed, 10 Jul 2002, Vince Darley wrote: > > (2) Your code depends on tkInt.h which is an internal header used by Tk > > which is supposedly not for public use. (This is very similar to the > > distinction we make between common and public API.) Presumably, you are > > using some internal Tk API, which they did not want you to use. > > It is not that "they did not want me to use", just that Tk's internal API > includes a bunch of X emulation stuff which is needed by the widget. It > is conceivable that on unix only it might compile with only tk.h (feel > free to try), but on Windows/MacOS tkInt.h is 100% required. OK, I did try tk.h, and it builds without warnings or errors, but I haven't yet been able to test it at run time (see below). > > I think I've fixed the remaining issues you reported. (warnings, name > clashes etc). Thanks very much for this effort. The compile warnings are indeed gone, and most of the linker errors. However, there is still one left (presumably because plplot_ccmap means different things in xwin.c and tkwin.c). cd shared; \ gcc -shared -fPIC -o ../libplplotd.so.5.1.0 \ -Wl,-soname -Wl,libplplotd.so.5 \ pdfutils.o plargs.o plbox.o plbuf.o plcont.o plcore.o plctrl.o plcvt.o pldtik.o plfill.o plhist.o plline.o plmap.o plot3d.o plpage.o plsdef.o plshade.o plsym.o pltick.o plvpor.o plwind.o plstripc.o plimage.o tclAPI.o Pltk_Init.o tcpip.o plframe.o plr.o xwin.o tk.o tkwin.o sc3d.o sccont.o scstubs.o javabind.o tclMain.o tkMain.o strutil.o sfstubs.o -L.. -ltclmatrixd -litk3.1 -ltk8.3 -litcl3.1 -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -lg2c tkwin.o(.data+0x4): multiple definition of plplot_ccmap' xwin.o(.data+0x8): first defined here collect2: ld returned 1 exit status make: *** [libplplotd.so.5.1.0] Error 1 As soon as this is sorted out, I look forward to some run-time testing. Alan |