> Hello Rooters, > I'm trying to link program from $ROOT/test on linux 2.0.30. I tried > to used ROOT 2.0 (root_v2.00.Linux.2.0.33.tar.gz). It failed. > What could be a reason of it? > Best wishes, > Tadeusz > > pytlos@fizwe7:/home/pytlos/test > make > g++ -Wl,-soname,libEvent.so -shared -g Event.o EventCint.o -o libEvent.so > g++ -g MainEvent.o Event.o EventCint.o -L/opt/root/lib -lNew -lBase -lCint > -lClib -lCont -lFunc -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta > -lMinuit -lNet -lPostscript -lProof -lTree -lUnix -lZip -lg++ -lm -ldl > -rdynamic -o Event > Event done > g++ -g hworld.o -L/opt/root/lib -lNew -lBase -lCint -lClib -lCont -lFunc > -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPostscript > -lProof -lTree -lUnix -lZip -lGpad -lGui -lGX11 -lX3d -L/usr/X11R6/lib > -lXpm -lX11 -lg++ -lm -ldl -rdynamic -o hworld > /opt/root/lib/libGX11.so: undefined reference to `XpmFree' > make: *** [hworld] Error 1 > Hello, I've encountered the same problem and solve it by adding a function XpmFree to my code: extern "C" { void XpmFree(void *p) { free(p); } } and everything worked fine. best wishes, Mathieu de Naurois ----------------------------------------- Mathieu de Naurois LPNHE/X Ecole Polytechnique denauroi@polhp1.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET