Red Hat Bugzilla – Bug 504706
Blitz packages for core 10 won't compile
Last modified: 2009-06-13 06:08:43 EDT
Description of problem:
Installed packages: blitz-0.9-7.fc9, blitz-devel-0.9.7.fc9; attempt to compile produces a blast of compile errors, too long to attach here.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install packages
2. Include <blitz/array>
3. Try to compile
Many, many compile errors.
The code compiled fine on my old Fedora version, core 6. So I expected it might compile after upgrading to core 10.
Uninstalling the packages mentioned above, and installing blitz version 0.9-7 from source, also produces (different) compile errors; but this can be fixed by adding "#include <cstdlib>" to funcs.h and mathfunc.h.
Please check if compiling with
$ g++ myprogram.cc `pkg-config blitz --libs --cflags`
Yep, it does work, like a charm. So I gather that I should generally use that pkg-config trick when compiling against any package, as a general rule? Sorry if I should've known that.
Blitz in fedora is patched to allow multilib installs, see bug #450999 for references. This means that part of the headers are in %libdir/blitz/include. The modified blitz.pc includes this header. You are always safe using pkg-config