From: Vince D. <vi...@sa...> - 2002-07-10 18:11:10
|
I'm away from my machine at the moment, but just rename all instances of that function in Plplotter_Init.c and you should be ok. -- Vince <http://www.santafe.edu/~vince> On Wed, 10 Jul 2002, Alan W. Irwin wrote: > On Wed, 10 Jul 2002, Vince Darley wrote: > > > On Wed, 10 Jul 2002, Alan W. Irwin wrote: > > > > > plplotter.c: In function PlPlotterKeyEH': > > > plplotter.c:1290: TkWindow' undeclared (first use in this function) > > > plplotter.c:1290: (Each undeclared identifier is reported only once > > > plplotter.c:1290: for each function it appears in.) > > > plplotter.c:1290: parse error before )' > > > plplotter.c: In function Openlink': > > > plplotter.c:2529: O_RDONLY' undeclared (first use in this function) > > > > O_RDONLY should be in some standard Unix header file (posix headers), and > > I'm afraid that 'TkpWindow((TkWindow*)...)' shows why this file actually > > does need tkInt.h > > Thanks to Joao's tip on O_RDONLY and (by hand) adding the flags > > -I/usr/include/tcl8.3/tk-private/generic/ -DHAVE_LIMITS_H > -I/usr/include/tcl8.3/tcl-private/generic/ > > I got plplotter.c compiled and put into the library. However, now run > into a library nameclash for plWait_Until. > > Building shared library > > 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 Plplotter_Init.o > plplotter.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 > Plplotter_Init.o: In function plWait_Until': > Plplotter_Init.o(.text+0x8c): multiple definition of plWait_Until' > Pltk_Init.o(.text+0xcc): first defined here > collect2: ld returned 1 exit status > > Looking forward to the next iteration from you.... > > Alan > > |