Re: [ROOT] Using TF77 With Shared Library In Compiled Code

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Tue Apr 15 2003 - 11:55:11 MEST


Hi,
You should remember that you ALWAYS NEED TO LINK your main() executable
with TF77.o and TF77Dict.o objects.
In the case of your "Test Program", just modify the Makefile line :
	$(LD) $(LDFLAGS) $^ $(LIBS) -o test
into (well, it's a very brutal fix, but it works ...) :
	$(LD) $(LDFLAGS) TF77/TF77.o TF77/TF77Dict.o $^ -LPWA_global $(LIBS) -lkernlib -lg2c -lnsl -o test
Best regards,
Jacek.
P.S. Note also that there is a new version of TF77.tar.gz available which
     is also working with newer gcc compilers (gcc-2.95 and gcc-3.2).
     The version that you use will not work with gcc-3.2. Jacek.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET