![]() |
Blitz Support : |
From: Julian Cummings (cummings_at_[hidden])
Date: 2003-12-19 14:00:58
Hi Thomas,
The bizarreness with the location of libblitz.a has to do with the use
of libtool to manage the building of applications with either static or
shared libraries. You should probably read the GNU libtool manual to
get an idea of how this is supposed to work. When you compile the blitz
testsuite and example codes, you will notice the use of libtool to
handle the linking.
Personally, I feel that using libtool for a package with a very tiny
library like blitz is overkill. But there was much shrieking when I
floated the idea of abandoning it. I guess a lot of Linux users are
very comfortable with using libtool along with autoconf/automake to
build and install software packages. So as long as it doesn't get in
the way, I don't mind.
(Someone else may want to chime in here on why libtool is useful.)
As for the purpose of the library, it holds instances of some global
objects, such as the pre-defined tensor indices in namespace blitz::tensor.
Regards, Julian C.
Thomas Wharton wrote:
>Greetings,
>
>Kinda new with installing software on my Linux system and I ran into
>something while installing Blitz that I thought I should ask about...
>
>After installing Blitz, I noticed that the /lib directory contained the file
>libblitz.la but not libblitz.a -- the libblitz.a file is actually located in
>a subdir called ".libs".
>
>I received an ld error ("cannot find -lblitz") when following the
>instructions for linking the Blitz library. However, noting where libblitz.a
>actually is on my system, I modified the command to specify the ".libs" dir.
>This appears to work; however, the readme.txt file in the /lib dir says the
>libblitz.a should reside in this dir.
>
>Are the docs wrong? Is it OK for the libblitz.a to reside in a subdir of
>/lib called ".libs"? Just to specify, I am running Red Hat 9.0 (dont know
>if that matters).
>
>Also curious of why you actually need to link in a library, since Blitz is
>template based -- admittedly, I am new to templates too, so I basically just
>nod my head and follow the instructions to the letter :)
>
>Many Thanks,
>Thomas Wharton
>Software Engineer
>Raytheon Co.
>757-421-8794
>
>_______________________________________________
>Blitz-support mailing list
>Blitz-support_at_[hidden]
>http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
>
-- Dr. Julian C. Cummings E-mail: cummings_at_[hidden] California Institute of Technology Phone: 626-395-2543 1200 E. California Blvd., Mail Code 158-79 Fax: 626-584-5917 Pasadena, CA 91125